问题
docker 拉取报错:文章来源地址https://www.toymoban.com/news/detail-506614.html
$ docker pull <仓库>
Error response from daemon: Head https://registry-1.docker.io/v2/...: Get https://auth.docker.io/token?scope=repository%3Aespressif%2Fidf%3Apull&service=registry.docker.io: net/http: TLS handshake timeout
解决
$ dig @114.114.114.114 registry-1.docker.io
; <<>> DiG 9.11.3-1ubuntu1.17-Ubuntu <<>> @114.114.114.114 registry-1.docker.io
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32074
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;registry-1.docker.io. IN A
;; ANSWER SECTION:
registry-1.docker.io. 55 IN A 44.194.5.25
registry-1.docker.io. 55 IN A 44.207.51.64
registry-1.docker.io. 55 IN A 44.207.96.114
;; Query time: 7 msec
;; SERVER: 114.114.114.114#53(114.114.114.114)
;; WHEN: Fri Aug 05 22:40:44 CST 2022
;; MSG SIZE rcvd: 97
# 编辑 /etc/host
sudo vi /etc/host
# 从上面选择一个 IP 增加
44.194.5.25 registry-1.docker.io
文章来源:https://www.toymoban.com/news/detail-506614.html
到了这里,关于【问题解决】Error response from daemon: Head https://registry-1.docker.io/v2/的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!