docker 拉去镜像失败Retrying in 1 second

docker 拉去镜像失败Retrying in 1 second

admin
2024-07-10 / 0 评论 / 153 阅读 / 正在检测是否收录...

错误信息:一直停留在等待或者重试的状态
lyfixkjh.png

解决方案:

 使用加速器(阿里加速器)

1.登录阿里云官方网站注册属于自己的镜像加速器

2.配置docker文件

[root@web-server18-20 ~]# cat /etc/docker/daemon.json 
{
 "registry-mirrors": [



"]
}

3.重启docker及加载配置文件

[root@web-server18-20 ~]# systemctl  daemon-reload
[root@web-server18-20 ~]# systemctl  restart docker 

4.垃取镜像测试

[root@web-server18-20 ~]# docker pull nginx 
Using default tag: latest
latest: Pulling from library/nginx
a2abf6c4d29d: Extracting [=============================================>     ]  28.84MB/31.36MB
a9edb18cadd1: Download complete 
589b7251471a: Download complete 
186b1aaa4aa6: Download complete 
b4df32aa5a72: Waiting 
a0bcbecc962e: Waiting 

至此垃取完成!!!!!!!

0

评论 (0)

取消