首页 > 文章 > centOS7关于pull 命令时报错:get https://registry-1.docker.io/v2/:ner/http:TLS handshake timeout 或者 request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers

centOS7关于pull 命令时报错:get https://registry-1.docker.io/v2/:ner/http:TLS handshake timeout 或者 request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers

参考文件:https://www.cnblogs.com/icebutterfly/p/9489133.html

报错:get https://registry-1.docker.io/v2/:ner/http:TLS handshake timeout   

  或者

  request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers

原因:连接不到 镜像库所致;

解决办法:

1.运行命令,修改文件:

vim /etc/docker/daemon.json
文件中加入:
{
    "registry-mirrors":["https://docker.mirrors.ustc.edu.cn"]
}

2.然后重启守护进程

systemctl daemon-reload
systemctl restart docker
 
时间:2019-03-13 22:57:26阅读(1134)
联系我们 - 留言反馈
© 2017 版权所有 鲁ICP备17052893号