本人电脑上装了VMware和docker,系统是win10专业版,然后今天想用下docker,打开报错,Hyper-V未开启,开启之后再次报错

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-enable

docker An error occurred 虚拟化错误解决

点击“任务管理器”->"性能"查看虚拟化是否被开启。本机已经开启了还是报错

docker An error occurred 虚拟化错误解决

解决:

Docker在Win10中是基于Win10自带的虚拟机Hyper-V运作的。安装前需要确保在BIOS中已经开启了CPU虚拟化。

docker An error occurred 虚拟化错误解决

 

已经开启了虚拟化还是报错

打开管理员power shell输入:

bcdedit /set hypervisorlaunchtype Auto

docker An error occurred 虚拟化错误解决

 

成功了重启电脑,就可以使用docker了

docker An error occurred 虚拟化错误解决

 

 

 docker An error occurred 虚拟化错误解决