禁用和启动Hyper-V

禁用和启动Hyper-V:

使用管理员权限运行命令:bcdedit /set hypervisorlaunchtype off。

对应的打开Hyper-V的命令:bcdedit /set hypervisorlaunchtype auto。

然后重启电脑

An error occurred

Hardware assisted virtualization and data execution protection must be enabled in the BIOS. See https://docs.docker.com/docker-for-windows/troubleshoot/#virtualization-must-be-enabled 

运行Docker报错:Win10旗舰版

解决方法:

1:bcdedit /set hypervisorlaunchtype auto

2:dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All

如果问题仍然存在,重安装Hyper-V

进入控制面板 - > [程序] - > [Windows功能],完全取消选中所有与Hyper-V相关的组件。重启系统。

再次启用Hyper-V。重新开始。

原文地址:https://www.cnblogs.com/edrp/p/12876702.html