Docker Community Forums

Share and learn in the Docker community.

Cannot reach docker repository

dockerhub

(Fangjun10568) #1

Expected behavior

download hello-world and run it

Actual behavior

Returned “Server misbehaving”

Information

I use a proxy to access docker registry, but it cannot download the image, the message is following:

Unable to find image ‘hello-world:latest’ locally
Pulling repository docker.io/library/hello-world
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Get https://registry-1.docker.io/v1/repositories/library/hello-world/tags/latest: dial tcp: lookup registry-1.docker.io on 10.0.75.1:53: server misbehaving.
See ‘C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help’.
#####And the log is:
[21:03:04.391][Proxy ][Info ] 2016/04/20 21:03:04 Found dns server 192.168.1.1
[21:03:04.402][Proxy ][Info ] 2016/04/20 21:03:04 Forward DNS query on udp to 192.168.1.1:53
[21:03:04.411][Proxy ][Info ] 2016/04/20 21:03:04 Forward DNS query on udp to 192.168.1.1:53
[21:03:04.420][Proxy ][Info ] 2016/04/20 21:03:04 Got response ;; opcode: QUERY, status: NOERROR, id: 40215 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;pool.ntp.org. IN A ;; ANSWER SECTION: pool.ntp.org. 12 IN A 202.118.1.81
[21:03:04.430][Proxy ][Info ] 2016/04/20 21:03:04 Got response ;; opcode: QUERY, status: NOERROR, id: 41015 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;pool.ntp.org. IN AAAA ;; AUTHORITY SECTION: pool.ntp.org. 1333 IN SOA f.ntpns.org. hostmaster.pool.ntp.org. 1461156662 5400 5400 1209600 3600
[21:03:06.757][Proxy ][Info ] 2016/04/20 21:03:06 Handle DNS query ;; opcode: QUERY, status: NOERROR, id: 40215 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;pool.ntp.org. IN A
[21:03:06.768][Proxy ][Info ] 2016/04/20 21:03:06 Forward DNS query on udp to 192.168.1.1:53
[21:03:06.779][Proxy ][Info ] 2016/04/20 21:03:06 Got response ;; opcode: QUERY, status: NOERROR, id: 40215 ;; flags: qr; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;pool.ntp.org. IN A ;; ANSWER SECTION: pool.ntp.org. 10 IN A 202.118.1.81
[21:05:25.610][Proxy ][Info ] 2016/04/20 21:05:25 dhcp: Request from 60:af:6d:9d:de:4a
[21:05:25.624][Proxy ][Info ] 2016/04/20 21:05:25 dhcp: Dropped because it doesn’t come from an Hyperv VM 60:af:6d:9d:de:4a
[21:05:25.636][Proxy ][Info ] 2016/04/20 21:05:25 dhcp: Request from 60:af:6d:9d:de:4a
[21:05:25.645][Proxy ][Info ] 2016/04/20 21:05:25 dhcp: Dropped because it doesn’t come from an Hyperv VM 60:af:6d:9d:de:4a
[21:07:21.826][Proxy ][Info ] 2016/04/20 21:07:21 proxy >> GET /v1.23/info
[21:07:21.837][Proxy ][Info ] 2016/04/20 21:07:21 Dial 10.0.75.2:2375
[21:07:21.854][Proxy ][Info ] 2016/04/20 21:07:21 Lookup IP for 10.0.75.2:2375
[21:07:21.867][Proxy ][Info ] 2016/04/20 21:07:21 [10.0.75.2]
[21:07:21.878][Proxy ][Info ] 2016/04/20 21:07:21 Dial IP 10.0.75.2:2375
[21:07:21.888][Proxy ][Info ] 2016/04/20 21:07:21 proxy << GET /v1.23/info
[21:07:33.444][Proxy ][Info ] 2016/04/20 21:07:33 proxy >> POST /v1.23/containers/create [rewriteBinds]
[21:07:33.458][Proxy ][Info ] 2016/04/20 21:07:33 proxy >> POST /v1.23/containers/create
[21:07:33.473][Proxy ][Info ] 2016/04/20 21:07:33 Dial 10.0.75.2:2375
[21:07:33.489][Proxy ][Info ] 2016/04/20 21:07:33 Dial IP 10.0.75.2:2375
[21:07:33.501][Proxy ][Info ] 2016/04/20 21:07:33 proxy << POST /v1.23/containers/create
[21:07:33.515][Proxy ][Info ] 2016/04/20 21:07:33 proxy >> GET /v1.23/info
[21:07:33.529][Proxy ][Info ] 2016/04/20 21:07:33 Dial 10.0.75.2:2375
[21:07:33.543][Proxy ][Info ] 2016/04/20 21:07:33 Dial IP 10.0.75.2:2375
[21:07:33.558][Proxy ][Info ] 2016/04/20 21:07:33 proxy << GET /v1.23/info
[21:07:33.987][Proxy ][Info ] 2016/04/20 21:07:33 proxy >> POST /v1.23/images/create?fromImage=hello-world&tag=latest
[21:07:33.999][Proxy ][Info ] 2016/04/20 21:07:33 Dial 10.0.75.2:2375
[21:07:34.010][Proxy ][Info ] 2016/04/20 21:07:33 Dial IP 10.0.75.2:2375
[21:07:34.025][Proxy ][Info ] 2016/04/20 21:07:33 Handle DNS query ;; opcode: QUERY, status: NOERROR, id: 16914 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;registry-1.docker.io. IN A
[21:07:34.038][Proxy ][Info ] 2016/04/20 21:07:33 Search for dns server…
[21:07:34.050][Proxy ][Info ] 2016/04/20 21:07:33 Handle DNS query ;; opcode: QUERY, status: NOERROR, id: 55381 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;registry-1.docker.io. IN AAAA
[21:07:34.076][Proxy ][Info ] 2016/04/20 21:07:34 服务器: UnKnown
[21:07:34.086][Proxy ][Info ] Address: 192.168.1.1

Steps to reproduce the behavior

  1. docker run hello-world

(Cpunella) #2

Hi,

I have the same problem, I’ve tried to change VM Network settings but nothing :frowning:


(Michael Friis) #3

What Windows version are you on? [System.Environment]::OSVersion.Version

It looks like we may be having some problems with never Windows 10 insider builds, eg. 14316.


(Cpunella) #4

My version is 10586 Enterprise


(Luís Rudge) #5

I’m on 14316 and I’m seeing the timeouts as well :frowning:

λ docker run -v c:/Users:/data alpine ls /data
Unable to find image 'alpine:latest' locally
Pulling repository docker.io/library/alpine
docker: Network timed out while trying to connect to https://index.docker.io/v1/repositories/library/alpine/images. You may want to check your internet connection or if you are behind a proxy..
See 'docker run --help'.

(Luís Rudge) #6

FYI, I just updated to windows build 14328 and the problem still happens.


(Luís Rudge) #7

Still not working with build 14332.

I can’t reply, so editing this:

Still not working for me, even after disable/enable the DockerNAT connection.

Unable to find image 'hello-world:latest' locally
Pulling repository docker.io/library/hello-world
docker: Network timed out while trying to connect to https://index.docker.io/v1/repositories/library/hello-world/images. You may want to check your internet connection or if you are behind a proxy..
See 'docker run --help'.

(Yoan Blanc) #8

Disable/Enabling the vEthernet (DockerNAT) connection did it for me.


(Tim) #9

@luisrudge I get the same here.

I am jumping between virtualbox/vmware & hyper-v with windows reboots, not sure if this has something to do with it. It did work last week but with the updated builds and switching between hyper visors each day something has gone wrong.


(Rolf Neugebauer) #10

Hi all

many users seem to experience networking issues and earlier this week we were (finally) able to reproduce and root cause (hopefully) most of them. There are actually a number of issues and hopefully next weeks beta will address the issues we were able to reproduce.

Thanks for all the feedback and details
Rolf


(Luís Rudge) #11

My problem was that IPV6 was enabled. After I disabled it, it started working.


(Reynierpm) #12

I am having the same issue as well and I’ve disabled IPv6 in Ethernet and vEthernet (DockerNAT) and still not working, this is my Windows 10 Built:

[System.Environment]::OSVersion.Version

Major  Minor  Build   Revision
-----     -----     -----      --------
10       0        10586  0

(Tim) #13

Still no luck after latest update (2446)

Tried removing IP6 but no connection to docker repo still.

Anyone else have a workaround? :wink:


(Phil McArdle) #14
docker pull hello-world
Using default tag: latest
Pulling repository docker.io/library/hello-world
Network timed out while trying to connect to https://index.docker.io/v1/repositories/library/hello-world/images. You may want to check your internet connection or if you are behind a proxy.

docker version 1.11.1-beta10 (2446) - tried disabling IPv6, tried re-enabling the network adapter.


(Alex Vazquez) #15

Same here with the latest Windows 10 build. No internet connection, so no way to get any docker hub image.


(Jrack) #16

Same boat. Use of SysEnv vars seemed to work for the Token approval, but the same vars don’t seem sufficient for interacting w the library.


(Rossjayjones) #17

Same for me.

Major Minor Build Revision


10 0 10586 0

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

Also removed IPv6 and disabled/enabled with same result


(Eduardo Lucas) #18

Got it working after having the same problem “Network timed out…” and

  • Deleting the VBox registry key
  • Disabling IP6 on the Docker network adapter
  • Disabling and re-enabling the Docker network adapter

Windows version:
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.10586 N/A Build 10586

Docker version 1.11.1, build 5604cbe


(Svobi) #19

Got it working:

On the Docker network adapter (vEthernet (DockerNAT)):

  • Disabling IP6
  • Entered DNS Server (8.8.8.8)
  • Disabling and re-enabling the Docker network adapter
    Not necessary : Entered Default Gateway (depends on your lan configuration) — philmccardle thx

(Phil McArdle) #20

Following your reply - I’ve disabled IPv6, set DNS for 8.8.8.8 on IPv4 and now it works - didn’t need a default gateway.