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

相关推荐
EverydayJoy^v^1 小时前
RH134简单知识点——第6章——管理SELinux安全性
linux·服务器·网络
橙河网络8 小时前
橙河网络:海外问卷安全类问卷调查怎么做?
网络·经验分享·笔记·课程设计
扶苏-su8 小时前
Java网络编程:InetAddress 详解
java·开发语言·网络
Tandy12356_9 小时前
手写TCP/IP协议栈——HTTP协议实现(完结篇)
c语言·网络·网络协议·tcp/ip·计算机网络·http
yangSnowy9 小时前
webSocket 通信详解
网络·websocket·网络协议
大榕树信息科技9 小时前
当实现动环监控系统的集中管理时,如何提升机房运维的响应速度?
网络·物联网·机房运维·机房管理系统·动环监控系统
终端行者10 小时前
Nginx limit_conn_zone 模块详解 Nginx如何限流 防止CC攻击
网络·nginx
white-persist10 小时前
轻松抓包微信小程序:Proxifier+Burp Suite教程
前端·网络·安全·网络安全·微信小程序·小程序·notepad++
SilentCodeY10 小时前
iptables 防 Docker 绕过:DOCKER-USER 链限制 Nacos 8848 仅 localhost 可访问
docker·容器·iptables
LaoZhangGong12310 小时前
学习TCP/IP的第6步:断开连接
网络·学习·tcp/ip·以太网