核心就是设置 registry 镜像仓库注册地址
{
"registry-mirrors": [
"https://reg-mirror.qiniu.com"
],
"insecure-registries": [],
"debug": false,
"experimental": false,
"features": {
"buildkit": true
},
"builder": {
"gc": {
"enabled": true,
"defaultKeepStorage": "50GB"
}
}
}