centOS7關於pull 命令時報錯:get https://registry-1.docker.io/v2/:ner/http:TLS handshake timeout 或者 request c

參考文件:https://www.cnblogs.com/icebutterfly/p/9489133.htmlhtml

報錯:get https://registry-1.docker.io/v2/:ner/http:TLS handshake timeout   nginx

  或者docker

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

緣由:鏈接不到 鏡像庫所致;vim

解決辦法:bash

1.運行命令,修改文件:ui

vim /etc/docker/daemon.json
文件中加入:
2.而後重啓守護進程

{ "registry-mirrors":["https://docker.mirrors.ustc.edu.cn"] }

systemctl daemon-reload
systemctl restart docker
相關文章
相關標籤/搜索