当前位置: 代码网 > it编程>开发工具>Docker > error pulling image configuration: download failed after attempts=6: dial tcp 47.88.58.234:443: conn

error pulling image configuration: download failed after attempts=6: dial tcp 47.88.58.234:443: conn

2024年08月02日 Docker 我要评论
1.创建/etc/docker目录。2.创建docker镜像配置文件。

docker拉取镜像超时

✅问题描述

记录一个bug,最近重装下腾讯云服务器后,发现docker拉去镜像超时拉去不下来,报错如下:

error pulling image configuration: download failed after attempts=6: dial tcp 47.88.58.234:443: connect: connection refused

image-20240626223357380

✅解决

设置国内镜像

1.创建/etc/docker目录

sudo mkdir -p /etc/docker

2.创建docker镜像配置文件

sudo tee /etc/docker/daemon.json <<-'eof'
 
 {
  "registry-mirrors": [
          "https://ox288s4f.mirror.aliyuncs.com",
          "https://registry.docker-cn.com",
          "http://hub-mirror.c.163.com",
          "https://mirror.ccs.tencentyun.com"
  ]
}
 
eof

3.重启

sudo systemctl daemon-reload
sudo systemctl restart docker

或者

sudo service docker restart

(0)

相关文章:

版权声明:本文内容由互联网用户贡献,该文观点仅代表作者本人。本站仅提供信息存储服务,不拥有所有权,不承担相关法律责任。 如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 2386932994@qq.com 举报,一经查实将立刻删除。

发表评论

验证码:
Copyright © 2017-2025  代码网 保留所有权利. 粤ICP备2024248653号
站长QQ:2386932994 | 联系邮箱:2386932994@qq.com