解決報錯Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: TLS handshaketimeout


報錯:

[root@localhost /]# sudo docker pull ubuntu
Error response from daemon: Get https://registry-1.docker.io/v2/library/ubuntu/manifests/2.04: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fubuntu%3Apull&serviceregistry.docker.io: net/http: TLS handshake timeout

解決方式:

第1步:通過dig @114.114.114.114 registry-1.docker.io找到可用IP地址

    IP地址非固定可能會變動,所以需要多試幾次(幾個IP)

第二步:修改/etc/hosts強制docker.io相關的域名解析到其它可用IP

第三步:保存配置文件后進行多次重試可以成功下載鏡像

第四步:驗證是否成功

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 docker login 報錯 Error response from daemon: Get https://registry-1.docker.io/v2/: unauthorized: incorrect username or password docker: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled (Client.Timeout exceeded while awaiting headers). docker: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled (Client.Timeout exceeded while awaiting headers). [docker pull nginx] Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io: no such host Error response from daemon: Get https://registry-1.docker.io/v2/library/nginx/manifests/1.14-alpine: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fnginx%3Apull&service=registry.docker. Get https://registry-1.docker.io/v2/library/hello-world/manifests/latest: net/http: TLS handshake timeout Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Clien 執行docker run命令時報錯Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) docker login 報【Error response from daemon: Get https://172.17.8.201:8002/v2/: http: server gave HTTP response to HTTPS client】 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
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM