windows10家庭版环境准备
./hyper-v.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
伪装专业版
REG ADD "HKEY_LOCAL_MACHINE\software\Microsoft\Windows NT\CurrentVersion" /v EditionId /T REG_EXPAND_SZ /d Professional /F
安装docker
…
注意,因为hyper-v与vmware共存,所以在使用vmware时需要关闭hyper-v
关闭hyper-v
bcdedit /set hypervisorlaunchtype off
开启hyper-v
bcdedit /set hypervisorlaunchtype auto