当前位置:   article > 正文

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

error pulling image configuration: download failed

docker拉取镜像超时

✅问题描述

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

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

image-20240626223357380

✅解决

设置国内镜像

1.创建/etc/docker目录

sudo mkdir -p /etc/docker
  • 1

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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12

3.重启

sudo systemctl daemon-reload
sudo systemctl restart docker

或者

sudo service docker restart
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号