环境
虚拟机CentOS7
安装好docker之后拉取emby镜像报错:
[root@localhost ~]# docker pull yukinococo/emby_crack
Using default tag: latest
Error response from daemon: Head https://registry-1.docker.io/v2/yukinococo/emby_crack/manifests/latest: read tcp 112.118.3.11:55128->34.238.187.50:443: read: connection reset by peer
[root@localhost ~]# vim /etc/resolv.conf
解决方案:
dig命令报错
[root@localhost ~]# dig @114.114.114.114 registry-1.docker.io
-bash: dig: command not found
[root@localhost ~]# yum -y install bind-utils
[root@localhost ~]# dig @114.114.114.114 registry-1.docker.io
; <<>> DiG 9.11.4-P2-RedHat-9.11.4-26.P2.el7_9.5 <<>> @114.114.114.114 registry-1.docker.io
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50078
;; 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. 33 IN A 35.169.249.115
registry-1.docker.io. 33 IN A 54.161.109.204
registry-1.docker.io. 33 IN A 3.224.96.239
registry-1.docker.io. 33 IN A 52.72.232.213
registry-1.docker.io. 33 IN A 52.55.168.20
registry-1.docker.io. 33 IN A 54.165.240.225
registry-1.docker.io. 33 IN A 34.197.211.151
registry-1.docker.io. 33 IN A 54.152.28.6
;; Query time: 27 msec
;; SERVER: 114.114.114.114#53(114.114.114.114)
;; WHEN: Sat Jul 10 11:59:21 CST 2021
;; MSG SIZE rcvd: 177
[root@localhost ~]# echo "54.165.240.225 registry-1.docker.io" >> /etc/hosts
评论 (0)