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

再拉取就快了

相关推荐
Flash.kkl2 小时前
Linux——进程信号
运维·服务器
苏宸啊4 小时前
Linux权限
linux·运维·服务器
Gofarlic_oms14 小时前
Windchill用户登录与模块访问失败问题排查与许可证诊断
大数据·运维·网络·数据库·人工智能
xqhoj4 小时前
Linux——make、makefile
linux·运维·服务器
文亭湖畔程序猿4 小时前
Debian 12 日常命令 & nano 快捷键速查表
运维·debian
张童瑶4 小时前
Linux 在线安装编译Python3.11
linux·运维·python3.11
ziqibit4 小时前
debian Live with Persistence 持久化U盘的debian系统
运维·debian
Shi_haoliu5 小时前
SolidTime 在 Rocky Linux 9.5 上的完整部署流程
linux·运维·nginx·postgresql·vue·php·laravel
HIT_Weston6 小时前
100、【Ubuntu】【Hugo】搭建私人博客:元信息&翻译(一)
linux·运维·ubuntu
C_心欲无痕6 小时前
Docker 的镜像与容器
运维·docker·容器