docker 拉取镜像 error pulling image configuration: download failed ****

问题:

在安装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"
 		"https://gallery.ecr.aws",
        "https://docker.lmirror.top",
        "https://atomhub.openatom.cn"

在这里插入图片描述

重启docker

systemctl daemon-reload
systemctl restart docker

再次拉取镜像

docker pull portainer/portainer

成功了

  • 3
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值