您当前的位置:首页 > 网站建设 > 网站维护
| php | asp | css | H5 | javascript | Mysql | Dreamweaver | Delphi | 网站维护 | 帝国cms | React | 考试系统 | ajax | jQuery | 小程序 |

docker pull命令拉取镜像失败的解决方案

51自学网 2025-02-05 12:16:02
  网站维护

一、执行docker pull命令,拉取镜像失败

报错信息:error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/51/5107333e08a87b836d48ff7528b1e84b9c86781cc9f1748bbc1b8c42a870d933/data?verify=1725414357-z%2BnaVrrs0%2Fi0D3ixKDH8JHhJgUQ%3D: dial tcp 88.191.249.182:443: i/o timeout

[root@VM-12-10-centos docker]# docker pull mysql:5.75.7: Pulling from library/mysql20e4dcae4c69: Pulling fs layer 1c56c3d4ce74: Pulling fs layer e9f03a1c24ce: Pulling fs layer 68c3898c2015: Waiting 6b95a940e7b6: Waiting 90986bb8de6e: Waiting ae71319cb779: Waiting ffc89e9dfd88: Waiting 43d05e938198: Waiting 064b2d298fba: Waiting df9a4d85569b: Waiting error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/51/5107333e08a87b836d48ff7528b1e84b9c86781cc9f1748bbc1b8c42a870d933/data?verify=1725414357-z%2BnaVrrs0%2Fi0D3ixKDH8JHhJgUQ%3D: dial tcp 88.191.249.182:443: i/o timeout

在这里插入图片描述

二、解决方案

解决的步骤如下:

1. 打开daemon.json文件

vim /etc/docker/daemon.json

2. 将其镜像地址进行替换

{"registry-mirrors": [    "https://docker.m.daocloud.io",    "https://dockerproxy.com",    "https://registry.docker-cn.com",    "https://docker.mirrors.ustc.edu.cn",    "https://hub-mirror.c.163.com",    "https://hub.uuuadc.top",    "https://docker.anyhub.us.kg",    "https://dockerhub.jobcher.com",    "https://dockerhub.icu",    "https://docker.ckyl.me",    "https://docker.awsl9527.cn",    "https://mirror.baidubce.com"  ]}

三、重启docker服务

systemctl daemon-reloadsystemctl restart docker 

下载地址:
Docker镜像与容器的导入导出及常用命令的使用
Ubuntu20.04登录界面鼠标键盘失灵问题的解决方案
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。