Foreword
Before doing that line of code to build a blog system for small project, you need to install Docker environment, then their own system is win10 Home Edition, not a professional version, and then gg ... no way to open Hyper-V, later discovered the magic of operation, the own win10 disguised as Pro, did not talk much, just start!
1. Open Hyper-V
New hyperv.cmd
document, as follows:
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
As an administrator to perform hyperv.cmd
file.
If you want to reboot, then reboot.
In the 控制面板->程序和功能->启用或关闭Windows
opening function Hyper-V
.
2. disguised as win10 Pro
Administrator, open cmd
execute the following command:
REG ADD "HKEY_LOCAL_MACHINE\software\Microsoft\Windows NT\CurrentVersion" /v EditionId /T REG_EXPAND_SZ /d Professional /F
3. Download Docker for Windows
Domestic Mirror:
https://oomake.com/download/docker-windows (Baidu network disk)
https://mirrors.ustc.edu.cn/docker-ce/ (version updates are not timely)
After downloading directly installed, pay attention to uncheck container window (default is not checked) during installation.
Docker After a successful installation, execute cmd command docker version
.
Of course, there are other issues, you can leave your comment field problems, solve them together, the way I can add, thank you!
Docker build on this end of it, I feel good, then more trouble spots like! I hope this blog help you ~
学如逆水行舟,不进则退