參考文件: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