错误信息:一直停留在等待或者重试的状态
解决方案:
使用加速器(阿里加速器)
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)