1.点击settings

2.点击Docker Engine

3.添加镜像仓库

{
"builder": {
"gc": {
"defaultKeepStorage": "20GB",
"enabled": true
}
},
"experimental": false,
"features": {
"buildkit": true
},
"registry-mirrors": [
"https://fy707np5.mirror.aliyuncs.com",
"http://hub-mirror.c.163.com"
]
}
点击Apply&Restart重启即可