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

docker拉取镜像超时

✅问题描述

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

bash 复制代码
error pulling image configuration: download failed after attempts=6: dial tcp 47.88.58.234:443: connect: connection refused

✅解决

设置国内镜像

1.创建/etc/docker目录

bash 复制代码
sudo mkdir -p /etc/docker

2.创建docker镜像配置文件

bash 复制代码
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.重启

bash 复制代码
sudo systemctl daemon-reload
sudo systemctl restart docker

或者

sudo service docker restart

相关推荐
夏日漱石_1 天前
tcp 服务器的设计思路
服务器·网络·tcp/ip
程序员三明治1 天前
HTTPS 真的牢不可破吗?—— 中间人攻击与安全机制解析
网络协议·安全·https
汪汪大队u1 天前
isis整体知识梳理
网络·智能路由器
洋葱圈儿6661 天前
第八个实验——浮动路由
运维·服务器·网络
SJLoveIT1 天前
虚拟机的网络模式
网络
IT葛大侠1 天前
华为S5720配置telnet远程
网络·华为
2501_915106321 天前
CDN 可以实现 HTTPS 吗?实战要点、部署模式与真机验证流程
网络协议·http·ios·小程序·https·uni-app·iphone
Morphlng1 天前
wstunnel 实现ssh跳板连接
linux·服务器·网络·ssh
安卓开发者1 天前
鸿蒙NEXT网络通信实战:使用HTTP协议进行网络请求
网络·http·harmonyos
为java加瓦1 天前
IO多路复用的两种触发机制:ET和LT触发机制。以及IO操作是异步的还是同步的理解
java·服务器·网络