win10 安装 docker

家庭版先安装Hyper-V

  1. 将如下代码添加到记事本中,并另存为Hyper-V.cmd文件。代码如下:
pushd "%~dp0"

dir /b %SystemRoot%servicingPackages*Hyper-V*.mum >hyper-v.txt

for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%servicingPackages\%%i"

del hyper-v.txt

Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL
  1. 右键点击Hyper-V.cmd,以管理员身份运行;
  2. 重启;

参考

https://www.cnblogs.com/wyt007/p/10656813.html
http://www.win7999.com/news/332510800.html

原文地址:https://www.cnblogs.com/mysticbinary/p/12777736.html