docker pull registory-1 timeout

docker pull 镜像,报如下错误 configuration-delivery: Error response from daemon: Head “https://registry-1.docker.io/v2/plugins/docker/manifests/latest": Get “https://auth.docker.io/token?scope=repository%3Aplugins%2Fdocker%3Apull&service=registry.docker.io": dial tcp: lookup auth.docker.io on 10.7.1.1:53: read udp 10.7.20.39:38115->10.7.1.1:53: i/o timeout

接办法如下

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115

[root@devops ~]# yum install -y  bind-utils
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
docker-ce-stable                                                                           | 3.5 kB  00:00:00
docker-ce-stable/7/x86_64/primary_db                                                       |  82 kB  00:00:00
Resolving Dependencies
--> Running transaction check
---> Package bind-utils.x86_64 32:9.11.4-26.P2.el7_9.10 will be installed
--> Processing Dependency: bind-libs-lite(x86-64) = 32:9.11.4-26.P2.el7_9.10 for package: 32:bind-utils-9.11.4-26.P2.el7_9.10.x86_64
--> Processing Dependency: bind-libs(x86-64) = 32:9.11.4-26.P2.el7_9.10 for package: 32:bind-utils-9.11.4-26.P2.el7_9.10.x86_64
--> Processing Dependency: liblwres.so.160()(64bit) for package: 32:bind-utils-9.11.4-26.P2.el7_9.10.x86_64
--> Processing Dependency: libisccfg.so.160()(64bit) for package: 32:bind-utils-9.11.4-26.P2.el7_9.10.x86_64
--> Processing Dependency: libisc.so.169()(64bit) for package: 32:bind-utils-9.11.4-26.P2.el7_9.10.x86_64
--> Processing Dependency: libirs.so.160()(64bit) for package: 32:bind-utils-9.11.4-26.P2.el7_9.10.x86_64
--> Processing Dependency: libdns.so.1102()(64bit) for package: 32:bind-utils-9.11.4-26.P2.el7_9.10.x86_64
--> Processing Dependency: libbind9.so.160()(64bit) for package: 32:bind-utils-9.11.4-26.P2.el7_9.10.x86_64
--> Processing Dependency: libGeoIP.so.1()(64bit) for package: 32:bind-utils-9.11.4-26.P2.el7_9.10.x86_64
--> Running transaction check
---> Package GeoIP.x86_64 0:1.5.0-14.el7 will be installed
--> Processing Dependency: geoipupdate for package: GeoIP-1.5.0-14.el7.x86_64
---> Package bind-libs.x86_64 32:9.11.4-26.P2.el7_9.10 will be installed
--> Processing Dependency: bind-license = 32:9.11.4-26.P2.el7_9.10 for package: 32:bind-libs-9.11.4-26.P2.el7_9.10.x86_64
---> Package bind-libs-lite.x86_64 32:9.11.4-26.P2.el7_9.10 will be installed
--> Running transaction check
---> Package bind-license.noarch 32:9.11.4-26.P2.el7_9.10 will be installed
---> Package geoipupdate.x86_64 0:2.5.0-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================
 Package                     Arch                Version                               Repository            Size
==================================================================================================================
Installing:
 bind-utils                  x86_64              32:9.11.4-26.P2.el7_9.10              updates              261 k
Installing for dependencies:
 GeoIP                       x86_64              1.5.0-14.el7                          base                 1.5 M
 bind-libs                   x86_64              32:9.11.4-26.P2.el7_9.10              updates              158 k
 bind-libs-lite              x86_64              32:9.11.4-26.P2.el7_9.10              updates              1.1 M
 bind-license                noarch              32:9.11.4-26.P2.el7_9.10              updates               91 k
 geoipupdate                 x86_64              2.5.0-1.el7                           base                  35 k

Transaction Summary
==================================================================================================================
Install  1 Package (+5 Dependent packages)

Total size: 3.1 M
Total download size: 193 k
Installed size: 7.5 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/2): geoipupdate-2.5.0-1.el7.x86_64.rpm                                                  |  35 kB  00:00:00
(2/2): bind-libs-9.11.4-26.P2.el7_9.10.x86_64.rpm                                          | 158 kB  00:00:00
------------------------------------------------------------------------------------------------------------------
Total                                                                             460 kB/s | 193 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 32:bind-license-9.11.4-26.P2.el7_9.10.noarch                                                   1/6
  Installing : geoipupdate-2.5.0-1.el7.x86_64                                                                 2/6
  Installing : GeoIP-1.5.0-14.el7.x86_64                                                                      3/6
  Installing : 32:bind-libs-lite-9.11.4-26.P2.el7_9.10.x86_64                                                 4/6
  Installing : 32:bind-libs-9.11.4-26.P2.el7_9.10.x86_64                                                      5/6
  Installing : 32:bind-utils-9.11.4-26.P2.el7_9.10.x86_64                                                     6/6
  Verifying  : GeoIP-1.5.0-14.el7.x86_64                                                                      1/6
  Verifying  : 32:bind-libs-9.11.4-26.P2.el7_9.10.x86_64                                                      2/6
  Verifying  : geoipupdate-2.5.0-1.el7.x86_64                                                                 3/6
  Verifying  : 32:bind-license-9.11.4-26.P2.el7_9.10.noarch                                                   4/6
  Verifying  : 32:bind-libs-lite-9.11.4-26.P2.el7_9.10.x86_64                                                 5/6
  Verifying  : 32:bind-utils-9.11.4-26.P2.el7_9.10.x86_64                                                     6/6

Installed:
  bind-utils.x86_64 32:9.11.4-26.P2.el7_9.10

Dependency Installed:
  GeoIP.x86_64 0:1.5.0-14.el7                              bind-libs.x86_64 32:9.11.4-26.P2.el7_9.10
  bind-libs-lite.x86_64 32:9.11.4-26.P2.el7_9.10           bind-license.noarch 32:9.11.4-26.P2.el7_9.10
  geoipupdate.x86_64 0:2.5.0-1.el7

Complete!
[root@devops ~]# dig @114.114.114.114 registry-1.docker.io

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-26.P2.el7_9.10 <<>> @114.114.114.114 registry-1.docker.io
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48851
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, 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.   71      IN      A       34.205.13.154
registry-1.docker.io.   71      IN      A       3.216.34.172
registry-1.docker.io.   71      IN      A       44.205.64.79

;; Query time: 2 msec
;; SERVER: 114.114.114.114#53(114.114.114.114)
;; WHEN: Fri Oct 14 10:53:06 CST 2022
;; MSG SIZE  rcvd: 97

[root@devops ~]# echo "34.205.13.154 registry-1.docker.io" >>/etc/hosts
[root@devops ~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
10.7.20.51 www.harbor.mobi
34.205.13.154 registry-1.docker.io
Licensed under CC BY-NC-SA 4.0
最后更新于 Jan 06, 2025 05:52 UTC
comments powered by Disqus
Built with Hugo
主题 StackJimmy 设计
Caret Up