问题:

在安装docker后拉取镜像的时候 出现error pulling image configuration: download failed ****异常

原因:

由于镜像源配置的问题引起的镜像拉取异常

解决

由于网络或者其他原因导致拉取镜像请求失败,报错:
error pulling image configuration: download failed after attempts=6: dial tcp 88.191.249.183:443: connect: connection refused
在这里插入图片描述
将 Docker 的默认镜像源换成国内的镜像源。国内镜像源通常响应速度更快,更加稳定。
之前已经配置过国内的镜像源了,只能说明之前配置的镜像源无效,把之前的镜像源删掉,重新配置镜像源
修改镜像源配置文件

vim /etc/docker/daemon.json

网上各种各样的镜像源 眼都看花了
这些源没能把我需要的镜像拉下来

      "https://dockerproxy.com",
      "https://docker.mirrors.ustc.edu.cn",
      "https://docker.nju.edu.cn",
      "https://ox288s4f.mirror.aliyuncs.com",
      "https://mirror.ccs.tencentyun.com",
  	  "https://docker.mirrors.ustc.edu.cn",
  	  "https://mirror.baidubce.com"

当前能用的地址:

 		"https://gallery.ecr.aws",
        "https://docker.lmirror.top",
        "https://atomhub.openatom.cn"

在这里插入图片描述

重启docker

systemctl daemon-reload
systemctl restart docker

再次拉取镜像

docker pull portainer/portainer

成功了

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐