安装过程中报错
docker desktop : Hardware assisted virtualization and data execution protection must be enabled
报错原因
经网络查询发现,是因为安装docker desktop for windows需要Hype-v的支持
解决方案
- 开启Hyper-v,通过PowerShell(管理员身份)命令启动
dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All
- 设置Hyper-v自动运行,通过PowerShell(管理员身份)
bcdedit /set hypervisorlaunchtype auto
最后重启电脑即可