error pulling image configuration: read tcp xxx.xxx.x.xxx:xx->xxx.xx.xxx.xx:xxx: read: connection

问题描述:

当我们使用docker pull拉取镜像的时候,会报error pulling image configuration: read tcp xxx.xxx.x.xxx:xx->xxx.xx.xxx.xx:xxx: read: connection类似这样的错误。

问题分析:

由于国内网络问题,无法连接到 docker hub,更换默认镜像源即可。

解决方案:

1. 国内可用镜像源:

Docker中国区官方镜像https://registry.docker-cn.com
网易镜像http://hub-mirror.c.163.com
中科大镜像https://docker.mirrors.ustc.edu.cn
阿里云镜像https://cr.console.aliyun.com

 2. 换默认源步骤

                

# 创建或修改 /etc/docker/daemon.json 文件
vi /etc/docker/daemon.json

# 修改为如下形式
{
    "registry-mirrors" : ["https://docker.mirrors.ustc.edu.cn"]
}

# 重启docker服务使配置生效
systemctl daemon-reload
systemctl restart docker

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值