windows运行docker报错Windows Hypervisor is not presentDocker Desktop is unable to detect a Hypervisor.

问题现象

Docker Desktop – Windows Hypervisor is not presentDocker Desktop is unable to detect a Hypervisor.Hardware assisted virtualization and data execution protection must be enabled in the BIOS. See https://docs.docker.com/desktop/troubleshoot/topics/#virtualization

图片[1] - windows运行docker报错Windows Hypervisor is not presentDocker Desktop is unable to detect a Hypervisor. - 正则时光

解决方案

1.检查电脑的主板的虚拟化是否开启。如果没有需要在BIOS中开启主板的虚拟化。

图片[2] - windows运行docker报错Windows Hypervisor is not presentDocker Desktop is unable to detect a Hypervisor. - 正则时光

2.开启windows的Hyper-V功能,开启后需要重启电脑。

图片[3] - windows运行docker报错Windows Hypervisor is not presentDocker Desktop is unable to detect a Hypervisor. - 正则时光
图片[4] - windows运行docker报错Windows Hypervisor is not presentDocker Desktop is unable to detect a Hypervisor. - 正则时光

3.管理员身份打开cmd窗口,执行下面两条命令,再次重启电脑。

dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All
bcdedit /set hypervisorlaunchtype auto
图片[5] - windows运行docker报错Windows Hypervisor is not presentDocker Desktop is unable to detect a Hypervisor. - 正则时光
© 版权声明
THE END
喜欢就支持一下吧
点赞13 分享
评论 抢沙发

请登录后发表评论

    请登录后查看评论内容