Docker 镜像拉取失败(error pulling image configuration:download failed)

 

  • 修改daemon.json配置
vim /etc/docker/daemon.json

 

  • 输入i 替换为:
{
  "builder": {
    "gc": {
      "defaultKeepStorage": "20GB",
      "enabled": true
    }
  },
  "experimental": true,
  "features": {
    "buildkit": true
  },
  "insecure-registries": [
    "172.24.86.231"
  ],
  "registry-mirrors": [
    "https://dockerproxy.com",
    "https://mirror.baidubce.com",
    "https://ccr.ccs.tencentyun.com",
    "https://docker.m.daocloud.io",
    "https://docker.nju.edu.cn",
    "https://docker.mirrors.ustc.edu.cn"
  ],
  "log-driver":"json-file",
  "log-opts": {
    "max-size":"500m", 
    "max-file":"3"
  }
}
  • 输入:wq保存并退出,并重启服务
sudo systemctl daemon-reload

sudo systemctl restart docker

 

参考:https://blog.csdn.net/qq_44796920/article/details/139573309?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-0-139573309-blog-

posted @ 2024-08-07 21:50  低调码农哥!  阅读(113)  评论(0编辑  收藏  举报