docker拉取镜像超时解决方法

对于docker 拉取ros-noetic-desktop-full失败的问题

问题:Error response from daemon: Get “https://registry-1.docker.io/v2/”: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
解决方法:

sudo vim /etc/docker/daemon.json
添加如下配置:
  "registry-mirrors": ["https://docker.registry.cyou",
"https://docker-cf.registry.cyou",
"https://dockercf.jsdelivr.fyi",
"https://docker.jsdelivr.fyi",
"https://dockertest.jsdelivr.fyi",
"https://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",
"https://docker.mirrors.ustc.edu.cn",
"https://mirror.iscas.ac.cn",
"https://docker.rainbond.cc"]

请添加图片描述因为我之前的是daemon.json文件,但是后面
在终端执行下面两行后,出现报错 不能restart docker 所以改成了.conf后缀 成功restart docker

systemctl daemon-reload

systemctl restart docker

但是仍然出现了上述time out的问题
所以我执行了:

pull 带上临时源地址
docker pull docker.unsee.tech/osrf/ros:noetic-desktop-full

请添加图片描述成功拉取镜像
参考连接1
这个连接也是有效的
有效连接
有效连接

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值