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

​

相关推荐
盟接之桥2 小时前
AI助手:你的7×24小时智能管家——让异常预警无处不在
大数据·网络·数据库·人工智能·制造·ai编程
2603_969579283 小时前
内网数据自动备份工具:隔离网络下的数据保护方案
网络
逗脑IDE4 小时前
零基础学ESP32:RFID无线射频卡——让ESP32拥有“刷卡“能力!
开发语言·网络·人工智能·python·esp32·硬件开发
cws2004014 小时前
监控摄像头选型指南
运维·网络·监控
和裕4 小时前
定制纸箱刀模费全解析:费用定义与可减免合作场景
大数据·运维·网络·人工智能·算法
剑锋所指,所向披靡!4 小时前
HTTP服务器的基本相关概念
服务器·网络协议·http
troy1284 小时前
智能体沙箱:如何为 Agent 模型搭建安全试验场,降低幻觉带来的损失
网络·安全
LHR_friendship5 小时前
HCIP课程全部内容
网络·笔记·学习·hcip·华为ensp
cpolar技术支持5 小时前
外网测试机的异常传不回内网?自托管 Sentry,用 cpolar 打通错误上报链路
python·nginx·docker·cpolar·sentry
Chengbei115 小时前
拒绝无效洞!蚂蚁Src榜一Clown 2.0 SRC SKill 第二代带状态闭环的白盒 & 黑盒审计 Skill
网络·人工智能·安全·web安全·网络安全·自动化·安全架构