1.操作系统安装HV
如果没有,执行 以系统管理员执行 HV.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
2.下载desktop docker安装文件
Docker Desktop: The #1 Containerization Tool for Developers | Docker
下载安装对应的操作系统版本
3.更换docker 镜像源
{
"registry-mirrors":[
"https://registry.docker-cn.com",
"http://hub-mirror.c.163.com",
"https://docker.mirrors.ustc.edu.cn"
],
"builder": {
"gc": {
"defaultKeepStorage": "20GB",
"enabled": true
}
},
"experimental": false
}
4.拉取想要安装的镜像
标签:hyper,HV,desktop,SystemRoot%,win11,docker,安装 From: https://www.cnblogs.com/sunyankun/p/18161938