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

再拉取就快了

相关推荐
白菜欣26 分钟前
Linux — 进程控制
android·linux·运维
JoneBB42 分钟前
ABAP Webservice连接
运维·开发语言·数据库·学习
Tolalal2 小时前
Vmware Ubuntu虚拟机扩容
linux·运维·ubuntu
修己xj2 小时前
别再让Docker占满你的硬盘!一篇搞定docker system所有命令
docker
咚为2 小时前
比AccessLog更全面的原生Nginx 日志记录
运维·nginx·junit
我星期八休息2 小时前
Linux系统编程—基础IO
linux·运维·服务器·c语言·c++·人工智能·算法
a752066282 小时前
零基础实操:小龙虾 AI OpenClaw 接入 Kimi 详细步骤
运维·服务器
Goldbioinformatics3 小时前
Windows版Claude Cowork启动Linux问题
linux·运维·windows
念恒123063 小时前
Ext系列文件系统(下)
linux·运维·服务器