Docker 映象源

无心々菜發表於2024-08-01

Docker 映象源

Windows上的 docker desktop

Docker Engine

阿里的映象源地址 https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors

{
  "builder": {
    "gc": {
      "defaultKeepStorage": "20GB",
      "enabled": true
    }
  },
  "experimental": false,
  "features": {
    "buildkit": true
  },
   "registry-mirrors": [
        "https://xxxxxxx.mirror.aliyuncs.com",
        "https://dockerproxy.com",
        "https://mirror.baidubce.com",
        "https://docker.m.daocloud.io",
        "https://docker.nju.edu.cn",
        "https://docker.mirrors.sjtug.sjtu.edu.cn"
    ]
}

Linux上,參考上面的配置

vim /etc/docker/daemon.json

systemctl daemon-reload
systemctl restart docker

end

相關文章