docker安装image过程中ERROR: Get “https:registry-1.docker.iov2“: nethttp: TLS handshake timeout

docker安装image过程中ERROR: Get “https:registry-1.docker.iov2“: nethttp: TLS handshake timeout,第1张

ERROR: Get “https://registry-1.docker.io/v2/”: net/http: TLS handshake timeout

  • 查询可用IP dig @114.114.114.114 registry-1.docker.io
➜  harbor dig @114.114.114.114 registry-1.docker.io

; <<>> DiG 9.10.6 <<>> @114.114.114.114 registry-1.docker.io
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22970
;; flags: qr rd ra; QUERY: 1, ANSWER: 8, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;registry-1.docker.io.		IN	A

;; ANSWER SECTION:
registry-1.docker.io.	38	IN	A	52.71.127.58
registry-1.docker.io.	38	IN	A	34.236.198.185
registry-1.docker.io.	38	IN	A	52.72.255.218
registry-1.docker.io.	38	IN	A	54.174.228.110
registry-1.docker.io.	38	IN	A	3.230.13.96
registry-1.docker.io.	38	IN	A	52.72.252.48
registry-1.docker.io.	38	IN	A	34.203.135.183
registry-1.docker.io.	38	IN	A	52.21.28.242

;; Query time: 32 msec
;; SERVER: 114.114.114.114#53(114.114.114.114)
;; WHEN: Mon Apr 25 11:12:45 CST 2022
;; MSG SIZE  rcvd: 177
  • 更改hosts,加入如下信息
➜  vi /etc/hosts

52.71.127.58 registry-1.docker.io

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/737624.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-28
下一篇 2022-04-28

发表评论

登录后才能评论

评论列表(0条)

保存