关于Docker的问题(Hardware assisted virtualization and data execution protection must be enabled in the BIOS)

Hardware assisted virtualization and data execution protection must be enabled in the BIOS 报错

 

 

 

 之前登录还好好的,可是最近一登就变成这样了。

解决方案:

添加Hyper- v的配置

Windows10家庭版添加Hyper-V的方法
将下面的内容复制到编辑器或者记事本当中

pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt
for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del hyper-v.txt
Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL

进行保存,保存为Hyper-v.cmd

在系统桌面上,以管理员身份运行

等待处理结束,输入Y进行重新启动,问题得到解决。
posted @ 2021-10-31 15:12  shared_pointer  阅读(507)  评论(0)    收藏  举报