windows 家庭版本,安装docker

创建一个hyperv.cmd

内容如下:

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

然后管理员身份运行,最后会提示重启,重启之后可以在服务中开启

 

 

 

管理员运行CMD,输入如下伪装专业版命令

REG ADD "HKEY_LOCAL_MACHINE\software\Microsoft\Windows NT\CurrentVersion" /v EditionId /T REG_EXPAND_SZ /d Professional /F

 

然后下载docker.exe,安装,到最后一部可能会报错。具体的我当时没截图,可以复制报错信息百度,就是下面这个代码

containers.bat文件

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

跟上面那个方法一样。

这下就能成功安装了,安装好了别忘记登录和改镜像

 

安装地址

https://www.cnblogs.com/samwu/p/10360943.html

 

官方镜像地址

https://www.daocloud.io/mirror#accelerator-doc

 

posted @ 2020-03-29 10:02  super久违  阅读(536)  评论(0编辑  收藏  举报