Docker Community Forums

Share and learn in the Docker community.

[SOLVED] Cannot pull any image from Docker Hub


(Nnacinovic) #1

Here is the issue that I encounter after trying to pull any image.

Network timed out while trying to connect to   
https://index.docker.io/v1/repositories/library/helloworld/images. You may want to check your internet 
connection or if you are behind a proxy..

(Gico24) #2

Same here, with several apps, no proxy.

Pulling image: linuxserver/mariadb:latest
IMAGE ID [74de922b9e36]: Pulling image (latest) from linuxserver/mariadb. Pulling image (latest) from linuxserver/mariadb, endpoint: https://registry-1.docker.io/v1/. Pulling dependent layers.
IMAGE ID [f7eef3e8d2a5]: Pulling metadata. Error pulling dependent layers.
IMAGE ID [74de922b9e36]: Error pulling image (latest) from linuxserver/mariadb, endpoint: https://registry-1.docker.io/v1/, HTTP code 400. Error pulling image (latest) from linuxserver/mariadb, HTTP code 400.

TOTAL DATA PULLED: 0 B

(Manh3141) #3

I had a similar issue. The error message is pretty precise. Are you using a proxy? If so, you need to make sure that it is configured correctly before pulling an image: If you are in a corporate network, you’ll most likely use a proxy server. If Docker tries to connect to DockerHub directly without using the corporate proxy, you may receive different error messages.


(Gico24) #4

Unfortunately it’s a home network, and there is no proxy, my ISP included.


(Nnacinovic) #5

also when I go to Hyper-V Manager and select Connect to the MobyLinuxVM I get just a black screen.
Is that ok?


(Nnacinovic) #6

This is from my log file:

[10:15:00.136][ProxyProcess ][Info ] Handle DNS query ;; opcode: QUERY, status: NOERROR, id: 4835 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;pool.ntp.org. IN A
[10:15:00.138][ProxyProcess ][Info ] Search for dns server…
[10:15:00.139][ProxyProcess ][Info ] Handle DNS query ;; opcode: QUERY, status: NOERROR, id: 5335 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;pool.ntp.org. IN AAAA
[10:15:00.689][ProxyProcess ][Info ] 21.200.168.192.in-addr.arpa
[10:15:00.690][ProxyProcess ][Info ] primary name server = localhost
[10:15:00.691][ProxyProcess ][Info ] responsible mail addr = nobody.invalid
[10:15:00.692][ProxyProcess ][Info ] serial = 1
[10:15:00.693][ProxyProcess ][Info ] refresh = 600 (10 mins)
[10:15:00.694][ProxyProcess ][Info ] retry = 1200 (20 mins)
[10:15:00.694][ProxyProcess ][Info ] expire = 604800 (7 days)
[10:15:00.695][ProxyProcess ][Info ] default TTL = 10800 (3 hours)
[10:15:00.696][ProxyProcess ][Info ] Server: UnKnown
[10:15:00.697][ProxyProcess ][Info ] Address: 192.168.200.21
[10:15:00.698][ProxyProcess ][Info ]
[10:15:00.699][ProxyProcess ][Info ]
[10:15:00.700][ProxyProcess ][Info ] Fetch error: Unable to find name server
[10:15:00.702][ProxyProcess ][Info ] Search for dns server…
[10:15:01.245][ProxyProcess ][Info ] 21.200.168.192.in-addr.arpa
[10:15:01.245][ProxyProcess ][Info ] primary name server = localhost
[10:15:01.246][ProxyProcess ][Info ] responsible mail addr = nobody.invalid
[10:15:01.246][ProxyProcess ][Info ] serial = 1
[10:15:01.247][ProxyProcess ][Info ] refresh = 600 (10 mins)
[10:15:01.247][ProxyProcess ][Info ] retry = 1200 (20 mins)
[10:15:01.248][ProxyProcess ][Info ] expire = 604800 (7 days)
[10:15:01.249][ProxyProcess ][Info ] default TTL = 10800 (3 hours)
[10:15:01.249][ProxyProcess ][Info ] Server: UnKnown
[10:15:01.250][ProxyProcess ][Info ] Address: 192.168.200.21
[10:15:01.250][ProxyProcess ][Info ]
[10:15:01.251][ProxyProcess ][Info ]
[10:15:01.251][ProxyProcess ][Info ] Fetch error: Unable to find name server
[10:15:02.635][ProxyProcess ][Info ] Handle DNS query ;; opcode: QUERY, status: NOERROR, id: 4835 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;pool.ntp.org. IN A
[10:15:02.636][ProxyProcess ][Info ] Search for dns server…
[10:15:02.637][ProxyProcess ][Info ] Handle DNS query ;; opcode: QUERY, status: NOERROR, id: 5335 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;pool.ntp.org. IN AAAA
[10:15:03.174][ProxyProcess ][Info ] 21.200.168.192.in-addr.arpa
[10:15:03.175][ProxyProcess ][Info ] primary name server = localhost
[10:15:03.176][ProxyProcess ][Info ] responsible mail addr = nobody.invalid
[10:15:03.177][ProxyProcess ][Info ] serial = 1
[10:15:03.178][ProxyProcess ][Info ] refresh = 600 (10 mins)
[10:15:03.179][ProxyProcess ][Info ] retry = 1200 (20 mins)
[10:15:03.180][ProxyProcess ][Info ] expire = 604800 (7 days)
[10:15:03.181][ProxyProcess ][Info ] default TTL = 10800 (3 hours)
[10:15:03.183][ProxyProcess ][Info ] Server: UnKnown
[10:15:03.184][ProxyProcess ][Info ] Address: 192.168.200.21
[10:15:03.185][ProxyProcess ][Info ]
[10:15:03.186][ProxyProcess ][Info ]
[10:15:03.187][ProxyProcess ][Info ] Fetch error: Unable to find name server
[10:15:03.188][ProxyProcess ][Info ] Search for dns server…
[10:15:03.726][ProxyProcess ][Info ] 21.200.168.192.in-addr.arpa
[10:15:03.727][ProxyProcess ][Info ] primary name server = localhost
[10:15:03.728][ProxyProcess ][Info ] responsible mail addr = nobody.invalid
[10:15:03.728][ProxyProcess ][Info ] serial = 1
[10:15:03.729][ProxyProcess ][Info ] refresh = 600 (10 mins)
[10:15:03.730][ProxyProcess ][Info ] retry = 1200 (20 mins)
[10:15:03.731][ProxyProcess ][Info ] expire = 604800 (7 days)
[10:15:03.732][ProxyProcess ][Info ] default TTL = 10800 (3 hours)
[10:15:03.732][ProxyProcess ][Info ] Server: UnKnown
[10:15:03.733][ProxyProcess ][Info ] Address: 192.168.200.21
[10:15:03.734][ProxyProcess ][Info ]
[10:15:03.735][ProxyProcess ][Info ]
[10:15:03.736][ProxyProcess ][Info ] Fetch error: Unable to find name server
[10:15:25.697][ProxyProcess ][Info ] proxy >> GET /v1.23/info
[10:15:25.698][ProxyProcess ][Info ] Dial Hyper-V socket 5f915054-4f61-45c7-a4ac-da99869dc52a:23a432c2-537a-4291-bcb5-d62504644739
[10:15:25.825][ProxyProcess ][Info ] proxy << GET /v1.23/info
[10:15:25.855][ProxyProcess ][Info ] proxy >> GET /v1.23/images/search?term=mysql
[10:15:25.855][ProxyProcess ][Info ] Dial Hyper-V socket 5f915054-4f61-45c7-a4ac-da99869dc52a:23a432c2-537a-4291-bcb5-d62504644739
[10:15:25.857][ProxyProcess ][Info ] Handle DNS query ;; opcode: QUERY, status: NOERROR, id: 26960 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;index.docker.io. IN AAAA
[10:15:25.858][ProxyProcess ][Info ] Search for dns server…
[10:15:25.858][ProxyProcess ][Info ] Handle DNS query ;; opcode: QUERY, status: NOERROR, id: 23808 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;index.docker.io. IN A
[10:15:26.387][ProxyProcess ][Info ] 21.200.168.192.in-addr.arpa
[10:15:26.388][ProxyProcess ][Info ] primary name server = localhost
[10:15:26.389][ProxyProcess ][Info ] responsible mail addr = nobody.invalid
[10:15:26.390][ProxyProcess ][Info ] serial = 1
[10:15:26.391][ProxyProcess ][Info ] refresh = 600 (10 mins)
[10:15:26.392][ProxyProcess ][Info ] retry = 1200 (20 mins)
[10:15:26.393][ProxyProcess ][Info ] expire = 604800 (7 days)
[10:15:26.393][ProxyProcess ][Info ] default TTL = 10800 (3 hours)
[10:15:26.394][ProxyProcess ][Info ] Server: UnKnown
[10:15:26.395][ProxyProcess ][Info ] Address: 192.168.200.21
[10:15:26.396][ProxyProcess ][Info ]
[10:15:26.397][ProxyProcess ][Info ]
[10:15:26.398][ProxyProcess ][Info ] Fetch error: Unable to find name server
[10:15:26.399][ProxyProcess ][Info ] Search for dns server…
[10:15:26.937][ProxyProcess ][Info ] 21.200.168.192.in-addr.arpa
[10:15:26.938][ProxyProcess ][Info ] primary name server = localhost
[10:15:26.939][ProxyProcess ][Info ] responsible mail addr = nobody.invalid
[10:15:26.940][ProxyProcess ][Info ] serial = 1
[10:15:26.941][ProxyProcess ][Info ] refresh = 600 (10 mins)
[10:15:26.942][ProxyProcess ][Info ] retry = 1200 (20 mins)
[10:15:26.943][ProxyProcess ][Info ] expire = 604800 (7 days)
[10:15:26.944][ProxyProcess ][Info ] default TTL = 10800 (3 hours)
[10:15:26.945][ProxyProcess ][Info ] Server: UnKnown
[10:15:26.946][ProxyProcess ][Info ] Address: 192.168.200.21
[10:15:26.947][ProxyProcess ][Info ]
[10:15:26.947][ProxyProcess ][Info ]
[10:15:26.949][ProxyProcess ][Info ] Fetch error: Unable to find name server
[10:15:30.858][ProxyProcess ][Info ] Handle DNS query ;; opcode: QUERY, status: NOERROR, id: 22165 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;index.docker.io. IN AAAA
[10:15:30.859][ProxyProcess ][Info ] Search for dns server…
[10:15:30.861][ProxyProcess ][Info ] Handle DNS query ;; opcode: QUERY, status: NOERROR, id: 16856 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;index.docker.io. IN A
[10:15:31.407][ProxyProcess ][Info ] 21.200.168.192.in-addr.arpa
[10:15:31.408][ProxyProcess ][Info ] primary name server = localhost
[10:15:31.408][ProxyProcess ][Info ] responsible mail addr = nobody.invalid
[10:15:31.409][ProxyProcess ][Info ] serial = 1
[10:15:31.410][ProxyProcess ][Info ] refresh = 600 (10 mins)
[10:15:31.411][ProxyProcess ][Info ] retry = 1200 (20 mins)
[10:15:31.412][ProxyProcess ][Info ] expire = 604800 (7 days)
[10:15:31.413][ProxyProcess ][Info ] default TTL = 10800 (3 hours)
[10:15:31.414][ProxyProcess ][Info ] Server: UnKnown
[10:15:31.415][ProxyProcess ][Info ] Address: 192.168.200.21
[10:15:31.416][ProxyProcess ][Info ]
[10:15:31.417][ProxyProcess ][Info ]
[10:15:31.418][ProxyProcess ][Info ] Fetch error: Unable to find name server
[10:15:31.419][ProxyProcess ][Info ] Search for dns server…
[10:15:31.956][ProxyProcess ][Info ] 21.200.168.192.in-addr.arpa
[10:15:31.957][ProxyProcess ][Info ] primary name server = localhost
[10:15:31.958][ProxyProcess ][Info ] responsible mail addr = nobody.invalid
[10:15:31.958][ProxyProcess ][Info ] serial = 1
[10:15:31.959][ProxyProcess ][Info ] refresh = 600 (10 mins)
[10:15:31.997][ProxyProcess ][Info ] retry = 1200 (20 mins)
[10:15:31.998][ProxyProcess ][Info ] expire = 604800 (7 days)
[10:15:31.999][ProxyProcess ][Info ] default TTL = 10800 (3 hours)
[10:15:32.000][ProxyProcess ][Info ] Server: UnKnown
[10:15:32.001][ProxyProcess ][Info ] Address: 192.168.200.21
[10:15:32.002][ProxyProcess ][Info ]
[10:15:32.003][ProxyProcess ][Info ]
[10:15:32.004][ProxyProcess ][Info ] Fetch error: Unable to find name server
[10:15:35.859][ProxyProcess ][Info ] proxy << GET /v1.23/images/search?term=mysql


(Nnacinovic) #7

I solved the problem by setting the DNS server address for IPv4 on DockerNAT to 8.8.8.8 and by enabling the VPN compatibility mode in Docker settings.