windows 执行一下bat脚本 必须以管理员执行
pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hv.txt
for /f %%i in ('findstr /i . hv.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del hv.txt
Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL
Pause
执行后
安装win10后再安装
双击win10默认会安装c盘
指定安装目录用一下教程
在docker安装包路径 执行 docker版本必须是 4.3以上 管理员cmd执行
"Docker Desktop Installer.exe" install --installation-dir="E:\2RJ\Docker\Docker" --windows-containers-default-data-root="E:\2RJ\Docker\Docker\data" --wsl-default-data-root="E:\2RJ\Docker\Docker\wsl"
wsl2
然后就安装好了
安装教程