需要在windows安装Docker,遇到的问题:
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
在系统桌面上,我们找到并右键点击【Hyper-V.cmd】文件图标,在右键菜单中点击:以管理员身份运行
然后等待程序执行,就ok啦
执行结束 键入 Y,重启
重启之后,到控制台->启动或关闭windows功能 (点开查看!)
下面所示,Hyper-V已经存在啦!