欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 汽车 > 维修 > docker pull命令拉取镜像失败的解决方案

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

2025/5/2 18:53:21 来源:https://blog.csdn.net/weixin_45014634/article/details/141883466  浏览:    关键词:docker pull命令拉取镜像失败的解决方案

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

一、执行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.7
5.7: Pulling from library/mysql
20e4dcae4c69: 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-reload
systemctl restart docker 

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词