docker 拉取不到镜像的问题:拉取超时

bash 复制代码
error pulling image configuration: download failed after attempts=6: dial tcp 31.13.94.10:443: i/o timeout

首先设置国内的镜像源:复制下面直接执行

bash 复制代码
sudo mkdir -p /etc/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
bash 复制代码
sudo systemctl daemon-reload
sudo systemctl restart docker

或者

sudo service docker restart

再拉取就快了

相关推荐
无足鸟ICT1 小时前
【RHCA+】介绍proc
linux·运维·服务器
Decay__5 小时前
PostgreSQL 用户权限与安全 —— 角色体系、GRANT 授权、pg_hba.conf 认证、行级安全与审计
运维·数据库·sql·postgresql
fengkai45455 小时前
Python运维实战
运维·开发语言·python·ssh·sftp·paramiko
那明眸似水6 小时前
LVS高可用负载均衡集群部署实训
运维·负载均衡·lvs
MSTcheng.6 小时前
【LinuxIO篇】Linux学习第二十三弹——fopen和open有什么区别?从 FILE* 到 fd,讲透 Linux 文件 IO
linux·运维·学习·io·系统调用·fd
charliejohn6 小时前
计算机考研 408 网络 DNS 概念
运维·服务器·网络
BullSmall7 小时前
Jenkins Git插件报错?6步修复+预防指南
运维·jenkins
分布式存储与RustFS7 小时前
向量库快照只落在本地盘:换节点恢复时把 RustFS 桶当副本源
运维·云原生·开源·对象存储·分布式存储·s3·性能基准
分布式存储与RustFS8 小时前
远程 Agent 连不上 stdio 的 MCP 工具:给 RustFS 加一层网关,六个操作变成 HTTP 端点
运维·云原生·开源·对象存储·分布式存储·s3·性能基准
飞奔的瓜牛8 小时前
运维工程师 Redis 日常巡检清单与实战注意事项
运维·数据库·redis