首先确保开启了wsl。cmd 直接输wsl,进入虚拟命令行代表开启
配置镜像
内容如下:
{
"builder": {
"gc": {
"defaultKeepStorage": "20GB",
"enabled": true
}
},
"experimental": false,
"features": {
"buildkit": true
},
"live-restore": true,
"registry-mirrors": [
"https://registry.docker-cn.com",
"http://hub-mirror.c.163.com",
"https://mirror.ccs.tencentyun.com"
]
}
关掉手动代理。
就可以成功pull了,直接去docker-compose吧