因为之前安装了vmware的原因,今天启动Docker启动出现如下错误:
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-enable。
然后查看了docker官方手册,发现可能是安装了hypervisor,但未在Windows启动期间启动。要重新启用它:
1 打开管理员控制台提示
2 运行
bcdedit /set hypervisorlaunchtype auto
3 重新启动Windows
官方手册链接:Logs and troubleshooting | Docker Documentation