win11 安裝desktop docker

孙延坤發表於2024-04-27

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.拉取想要安裝的映象

相關文章