Docker Community Forums

Share and learn in the Docker community.

Docker pull won't work

docker

(Cgcgbcbc) #1

when I type docker pull nginx, it will fail with message

$ docker pull nginx
Using default tag: latest
Pulling repository docker.io/library/nginx
Network timed out while trying to connect to https://index.docker.io/v1/repositories/library/nginx/images. You may want to check your internet connection or if you are behind a proxy.

How ever when I curl the uri,

 curl https://index.docker.io/v1/repositories/library/nginx/images

It works

[{"checksum": "", "id": "e54ac52c1cd0f31344ce34f6f464a86728283fa836df9e3b85abbf0f7125258b"}, {"checksum": "", "id": "53706a20c63c8f3e5a83f7f254dfd4f35af182cfef2f08e257ea8fb9448dbc5a"}, {"checksum": "", "id": "6dcf98c013aa6ed9c5a92510ad9c01986784913a41b6f4a5d8ee78e44d6f3e69"}, {"checksum": "", "id": "fb6a29723bd61ce419b25d711039edd0af435a1854336ba220ad7524885bd8ec"}, {"checksum": "", "id": "9975d8b38f0a02ec61e30009e3e61506a56c42fe66b148a5a99bdee371275af1"}, {"checksum": "", "id": "d9896b314eed0a0bfb3063fea9b6f475ba641a6a8b88fd4a32a23b33650f8584"}, {"checksum": "", "id": "58dcc178d9ab2fe976bfd07c931ad7cb1d597c2aad09fd1fe24a00847350b96b"}, {"checksum": "", "id": "1f1c23fb65be0308334593908484bf9988f5b4914b5033d23be448891fa7d2f5"}, {"checksum": "", "id": "5cc1f30a1c92210638f87f66405cdd5b8fc7212ca894a53e46331fc4be07f986"}, {"checksum": "", "id": "0f577a4d2fa7e1d29a811da41029ee1fc5e5bbe40949377411aa4f0ae49da56c"}, {"checksum": "", "id": "c629dbbdf17e04f9984a033607103d9d127e8dad3c775acd7174e2c8670f8172"}, {"checksum": "", "id": "9f1890db405226ff2b3a87d76e2eedfcb27be46ec3962493ba5afc1cc598fad6"}, {"checksum": "", "id": "c0e6aba9c87a9a49039f6d7a0e7cee1ca61f63ddd19025db5b078e3603e6fcfc"}, {"checksum": "", "id": "6b8a1ecb2364a8ea74873a6bac5104699c260a392ce403ca137b2ce5c5235114"}, {"checksum": "", "id": "d1cc0e6af8490e94cde088bec8b267615464eeb1af20bcbe577d055ff231e634"}, {"checksum": "", "id": "efbd5c0bba229e2b35a3a3b2eecb2b3135e676ff0ac996e3de10d6c3ba5881a9"}, {"checksum": "", "id": "fad62215f25cca95a039eee4710724dee024eee81554a6a63e304d724ecc369a"}, {"checksum": "", "id": "1974fe9e16aaf53f4d697a50ce30ec5d442bb0d5b90ff9bf416b0622df1c6c9e"}, {"checksum": "", "id": "55559c7ac7b11d91ee4f7e84661c5f0bf3468506c49519649c3eb81a4dfb11e0"}, {"checksum": "", "id": "ad60677089e5ab5e71293e3bb59b0723dab7cf183b739337db31cd6eb25f06a7"}, {"checksum": "", "id": "2fde8ab4c6531ec5986c1c79586b00df383d86a106474421eef299ba3c9a7c0b"}, {"checksum": "", "id": "f58d61a874bedb7cdcb5a409ebb0c53b0656b880695c14e78a69902873358d5f"}, {"checksum": "", "id": "54fdf50e0ac687b38504edb2ad481849e7f6637b75ccc49895d4b5365c4528e7"}, {"checksum": "", "id": "be700e4956dfe3fe533d97ec120c5cd1ada9fce0aedddbd94c9d37e66b8a03c3"}, {"checksum": "", "id": "4b9bf1642656d3482983e78c61c6f09eb4d5f5a32fcc390b94acdccc496be4c8"}, {"checksum": "", "id": "51abb4d2846b1061b1dc23834bdef61593c0bee503f6be25e42fa84b9ef315dd"}, {"checksum": "", "id": "47131f1f575f4f66dfa24b3d844d5ca93aa7922ee6a80ccc98662d428f78a5e1"}, {"checksum": "", "id": "43053ae02e2815a0c812df35679d7b54be80f848aa2a4278632644a0e435f647"}, {"checksum": "", "id": "cea3e203a9a4178bbb9433d08f2efe02f3aeef8cec2a4fa9001f960ddc83bb19"}, {"checksum": "", "id": "24ba19347287d5803384971bccf016fb02ef34598bd6fb31b87f0f605c79daa3"}, {"checksum": "", "id": "15d695f22e63152a6dadca632a5144e228db64d467a6216071a2bbc31b8d9d3a"}, {"checksum": "", "id": "7b5a5b33135cae92d334deeab4e173379271519aa5536b4b9f0c066d79342323"}, {"checksum": "", "id": "cbb654e7b198ca020999cf9b43680aca22fb1dcc6dfdcc53baa289ca382330cd"}, {"checksum": "", "id": "94b2a402586c025be73e466fe3d99241e89daf83c33dd6e637f8094dae2dedf2"}, {"checksum": "", "id": "3115224c8759543271db06d6c9e00eb15ffd94c04e1d977bfa1f7659be22906a"}, {"checksum": "", "id": "85cad9484b9ce4774e2fb0de2841fc5973e413c1483c804af47bebee466ab1fa"}, {"checksum": "", "id": "3764c88aa9a307b8ef71997605875b407807b21d4f452e61a63b4a3730c6a356"}, {"checksum": "", "id": "2a250d324882b789296fa2ce98083ed9685e6b5ed9afdb397648aed9b6cf04a4"}, {"checksum": "", "id": "25e5fff3d572b535ae7228f89146a963d30435869e8c7737c4813a1523ae648e"}, {"checksum": "", "id": "3dfb21b47cdf6f7af76e22c173ee5d3aa5c98d1ce5bba97a0385df34748e93db"}, {"checksum": "", "id": "014d057e4d45acaa782a695595340523c1ecf71ba5a2e0e3caeb7b8b867635a5"}, {"checksum": "", "id": "35e8ef69b40a30e36c240aa8f80f402142829176eaf0b9451efbb0277bf8a0e8"}, {"checksum": "", "id": "4cb30e44374099cb581b26fcedc8154c47c810a841328de1e32b463e26c236ad"}, {"checksum": "", "id": "9bb500e55cdb4160f1867c8468d737bfec4bb610589e1066c74e1329c3a1f894"}, {"checksum": "", "id": "06cc8ef88e05b70c7e6a84d55710c081090d03b4643f6a3c632b7711b9050266"}, {"checksum": "", "id": "605083c53cc5770e133fadc6cd3c0e4904c279fe27f690a753e26578cf705e89"}, {"checksum": "", "id": "c95d1af3960da69424749e63ded71fd3cd730796ddf33c7666544f21ce24e5a6"}, {"checksum": "", "id": "0a410ba58143f8d3b75f1b37560fee03fba95ec6468709db01c813c068315a21"}, {"checksum": "", "id": "fb6fc13654c9550f90ed54ce01a24a077dbbd2f96a406ca5f4a3b0685f502697"}, {"checksum": "", "id": "36b0adefb2f371685aa764c3d47eaaf12583814c7bccb13282a0fe9423526fb5"}, {"checksum": "", "id": "777ff39b646283420dfa1b5cbebaec067ddbe6c2e8360f9df11d20fd69876561"}, {"checksum": "", "id": "6886fb5a9b8d73b12d842bab8f9a6941c36094c2974abddb685d54c9d99e37da"}, {"checksum": "", "id": "902b87aaaec929e80541486828959f14fa061f529ad7f37ab300d4ef9f3a0dbf"}, {"checksum": "", "id": "9a61b6b1315e6b457c31a03346ab94486a2f5397f4a82219bee01eead1c34c2e"}, {"checksum": "", "id": "aface2a79f55ab2100b7d0f87542f0e1b030a368aa06127950aa6d0b32ab4fcb"}, {"checksum": "", "id": "5dd2638d10a1f58cb626b934ae30424504c88e1a7f5c2709d9a26b44a6ff7668"}, {"checksum": "", "id": "97df1ddba09e698ea2ee764bf081482056cc8e1e38a53c8c8c9753072cadd3fb"}, {"checksum": "", "id": "438d75921414c48c09defacd519b2339fd5c06a1192562b40e68465fd06df017"}, {"checksum": "", "id": "7340fb61bdef2d604a501a5911d627db634dd35b1588e8ee39ffa82152d7b82d"}, {"checksum": "", "id": "51ed40dd36716814de243415f08dee864a36ff0bb191cd2143f07f4543f05497"}, {"checksum": "", "id": "2b12d66de2777efbc3fcb84ac615f358573137f1e7e6d31078414a9376b8019a"}, {"checksum": "", "id": "4b1798a9cafa46506b7bd878b44ac4ef1636adeaf4caae3fc092ac7a51f989f2"}, {"checksum": "", "id": "61f2d0dc03500794ee4db5aef005c80eabd7193eb8265bdf915090e0061ba975"}, {"checksum": "", "id": "ce293cb4a3c9d553a24d4b30d7a130254b889ef84b1207f3afea59c06cc95450"}, {"checksum": "", "id": "61b3964dfa70d6dedddaa94f9fff414db13da339250dea586c4401c53932254e"}, ...

(Cgcgbcbc) #2

It seems like a dns issue.
In fact I have two adapters, one is Ethernet the other is WiFi.
When I use the WiFi adapter, it seems to work:

[17:32:05.855][Proxy          ][Info   ] 
[17:32:05.859][Proxy          ][Info   ] 名称:    localhost
[17:32:05.864][Proxy          ][Info   ] Addresses:  ::1
[17:32:05.869][Proxy          ][Info   ] 	  127.0.0.1
[17:32:05.874][Proxy          ][Info   ] 
[17:32:05.879][Proxy          ][Info   ] 
[17:32:05.883][Proxy          ][Info   ] 2016/04/06 17:32:05 Found dns server 10.235.128.1
[17:32:05.887][Proxy          ][Info   ] 2016/04/06 17:32:05 Forward DNS query on udp to 10.235.128.1:53
[17:32:05.890][Proxy          ][Info   ] 2016/04/06 17:32:05 Forward DNS query on udp to 10.235.128.1:53
[17:32:05.892][Proxy          ][Info   ] 2016/04/06 17:32:05 Got response ;; opcode: QUERY, status: NOERROR, id: 24465 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0  ;; QUESTION SECTION: ;registry-1.docker.io.	IN	 AAAA  ;; ANSWER SECTION: registry-1.docker.io.	40	IN	CNAME	registry-origin.docker.io.  ;; AUTHORITY SECTION: docker.io.	880	IN	SOA	ns-513.awsdns-00.net. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400 
[17:32:05.895][Proxy          ][Info   ] 2016/04/06 17:32:05 Got response ;; opcode: QUERY, status: NOERROR, id: 6201 ;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 4, ADDITIONAL: 4  ;; QUESTION SECTION: ;registry-1.docker.io.	IN	 A  ;; ANSWER SECTION: registry-1.docker.io.	40	IN	CNAME	registry-origin.docker.io. registry-origin.docker.io.	40	IN	A	52.3.130.244 registry-origin.docker.io.	40	IN	A	54.209.64.176 registry-origin.docker.io.	40	IN	A	52.20.16.207  ;; AUTHORITY SECTION: docker.io.	57843	IN	NS	ns-1827.awsdns-36.co.uk. docker.io.	57843	IN	NS	ns-513.awsdns-00.net. docker.io.	57843	IN	NS	ns-421.awsdns-52.com. docker.io.	57843	IN	NS	ns-1168.awsdns-18.org.  ;; ADDITIONAL SECTION: ns-421.awsdns-52.com.	69996	IN	A	205.251.193.165 ns-513.awsdns-00.net.	143178	IN	A	205.251.194.1 ns-1168.awsdns-18.org.	60928	IN	A	205.251.196.144 ns-1827.awsdns-36.co.uk.	162894	IN	A	205.251.199.35 
[17:32:08.211][Proxy          ][Info   ] 2016/04/06 17:32:08 Handle DNS query ;; opcode: QUERY, status: NOERROR, id: 54366 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0  ;; QUESTION SECTION: ;dseasb33srnrn.cloudfront.net.	IN	 AAAA 
[17:32:08.220][Proxy          ][Info   ] 2016/04/06 17:32:08 Forward DNS query on udp to 10.235.128.1:53
[17:32:08.230][Proxy          ][Info   ] 2016/04/06 17:32:08 Handle DNS query ;; opcode: QUERY, status: NOERROR, id: 58814 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0  ;; QUESTION SECTION: ;dseasb33srnrn.cloudfront.net.	IN	 A 
[17:32:08.239][Proxy          ][Info   ] 2016/04/06 17:32:08 Forward DNS query on udp to 10.235.128.1:53

But for the Ethernet adapter

[17:40:15.943][Proxy          ][Info   ] 2016/04/06 17:40:15 Fetch error: Unable to find name server
[17:40:15.945][Proxy          ][Info   ] 2016/04/06 17:40:15 Search for dns server...
[17:40:16.534][Proxy          ][Info   ] 2016/04/06 17:40:16 proxy << POST /v1.23/images/create?fromImage=nginx%3Alatest
[17:40:21.932][Proxy          ][Info   ] 2016/04/06 17:40:21 DNS request timed out.
[17:40:21.941][Proxy          ][Info   ]     timeout was 2 seconds.
[17:40:21.952][Proxy          ][Info   ] 服务器:  UnKnown
[17:40:21.960][Proxy          ][Info   ] Address:  2001:da8:200:ffff::28
[17:40:21.967][Proxy          ][Info   ] 
[17:40:21.972][Proxy          ][Info   ] DNS request timed out.
[17:40:21.976][Proxy          ][Info   ]     timeout was 2 seconds.
[17:40:21.981][Proxy          ][Info   ] DNS request timed out.
[17:40:21.985][Proxy          ][Info   ]     timeout was 2 seconds.
[17:40:21.989][Proxy          ][Info   ] 
[17:40:21.993][Proxy          ][Info   ] 2016/04/06 17:40:21 Fetch error: Unable to find name server
[17:40:21.996][Proxy          ][Info   ] 2016/04/06 17:40:21 Search for dns server...


(Michael Friis) #3

@cgcgbcbc I saw something similar yesterday. The virtual switch type that we use should insulate Docker from networking changes. Please keep us posted if you find out more.


(Fares Noueihed) #4

I am experiencing similar behavior. I cannot pull, and the curl command is successful. I get a degraded status on the switch. Not sure if it’s related. I have tried many of the proposed solutions without success.

(Get-VMNetworkAdapter -VMName MobyLinuxVM)
Network Adapter False          MobyLinuxVM DockerNAT  00155D380122 {Degraded, ProtocolVersion} {10.0.75.2}

(Get-VMNetworkAdapter -VMName MobyLinuxVM).StatusDescription
Degraded
The protocol version of the component installed in the virtual machine does not match the version expected by the hosting system
Updated:  based on the logs, it looks like DNS resolution is working, but the create times out:
[22:23:29.649][Proxy          ][Info   ] 2016/04/15 22:23:29 Got response ;; opcode: QUERY, status: NOERROR, id: 48500 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 0  ;; QUESTION SECTION: ;index.docker.io.	IN	 AAAA  ;; ANSWER SECTION: index.docker.io.	300	IN	CNAME	elb-io.us-east-1.aws.dckr.io. elb-io.us-east-1.aws.dckr.io.	900	IN	CNAME	us-east-1-elbio-rm5bon1qaeo4-623296237.us-east-1.elb.amazonaws.com.  ;; AUTHORITY SECTION: us-east-1.elb.amazonaws.com.	60	IN	SOA	ns-1119.awsdns-11.org. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 60 
[22:23:29.680][Proxy          ][Info   ] 2016/04/15 22:23:29 Got response ;; opcode: QUERY, status: NOERROR, id: 45226 ;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0  ;; QUESTION SECTION: ;index.docker.io.	IN	 A  ;; ANSWER SECTION: index.docker.io.	300	IN	CNAME	elb-io.us-east-1.aws.dckr.io. elb-io.us-east-1.aws.dckr.io.	900	IN	CNAME	us-east-1-elbio-rm5bon1qaeo4-623296237.us-east-1.elb.amazonaws.com. us-east-1-elbio-rm5bon1qaeo4-623296237.us-east-1.elb.amazonaws.com.	60	IN	A	52.73.94.64 us-east-1-elbio-rm5bon1qaeo4-623296237.us-east-1.elb.amazonaws.com.	60	IN	A	52.72.231.247 us-east-1-elbio-rm5bon1qaeo4-623296237.us-east-1.elb.amazonaws.com.	60	IN	A	52.4.72.58 
[22:23:59.364][Proxy          ][Info   ] 2016/04/15 22:23:59 proxy << POST /v1.23/images/create?fromImage=hello-world%3Alatest

(Saschabe) #5

Try to diable ipv6 on your host. That worked for me.


(Fares Noueihed) #6

In my case, disabling IPv6 did not help.


(Sihorton) #7

I had exactly the same problem today, I had installed acrylic dns proxy server and when I turned that off then docker was able to pull. I then restarted the acrylic proxy server and docker continued to work. If you are using some form of local proxy server for development and get this error then try disabling it and see if that clears the problem for you as well.


(Kgersen) #8

same issue:

C:\>docker pull alpine Using default tag: latest Pulling repository docker.io/library/alpine 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.

here is the log:

[15:38:16.458][Proxy ][Info ] 2016/04/20 15:38:16 proxy >> GET /v1.23/info [15:38:16.463][Proxy ][Info ] 2016/04/20 15:38:16 Dial 10.0.75.2:2375 [15:38:16.468][Proxy ][Info ] 2016/04/20 15:38:16 Lookup IP for 10.0.75.2:2375 [15:38:16.472][Proxy ][Info ] 2016/04/20 15:38:16 [10.0.75.2] [15:38:16.475][Proxy ][Info ] 2016/04/20 15:38:16 Dial IP 10.0.75.2:2375 [15:38:16.479][Proxy ][Info ] 2016/04/20 15:38:16 proxy << GET /v1.23/info [15:38:16.587][Proxy ][Info ] 2016/04/20 15:38:16 proxy >> POST /v1.23/images/create?fromImage=alpine%3Alatest [15:38:16.592][Proxy ][Info ] 2016/04/20 15:38:16 Dial 10.0.75.2:2375 [15:38:16.595][Proxy ][Info ] 2016/04/20 15:38:16 Dial IP 10.0.75.2:2375 [15:38:16.599][Proxy ][Info ] 2016/04/20 15:38:16 Handle DNS query ;; opcode: QUERY, status: NOERROR, id: 15494 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;registry-1.docker.io. IN AAAA [15:38:16.602][Proxy ][Info ] 2016/04/20 15:38:16 Search for dns server... [15:38:16.606][Proxy ][Info ] 2016/04/20 15:38:16 Handle DNS query ;; opcode: QUERY, status: NOERROR, id: 30822 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;registry-1.docker.io. IN A [15:38:16.619][Proxy ][Info ] 2016/04/20 15:38:16 Serveur : UnKnown [15:38:16.622][Proxy ][Info ] Address: fe80::237:b7ff:xxxx:xxxx [15:38:16.626][Proxy ][Info ] [15:38:16.629][Proxy ][Info ] [15:38:16.633][Proxy ][Info ] 2016/04/20 15:38:16 Found dns server fe80::237:b7ff:xxxx:xxxx [15:38:16.636][Proxy ][Info ] 2016/04/20 15:38:16 Forward DNS query on udp to [fe80::237:b7ff:xxxx:xxxx]:53 [15:38:16.639][Proxy ][Info ] 2016/04/20 15:38:16 Forward DNS query on udp to [fe80::237:b7ff:xxxx:xxxx]:53 [15:38:16.652][Proxy ][Info ] 2016/04/20 15:38:16 Got response ;; opcode: QUERY, status: NOERROR, id: 30822 ;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;registry-1.docker.io. IN A ;; ANSWER SECTION: registry-1.docker.io. 60 IN CNAME registry-origin.docker.io. registry-origin.docker.io. 60 IN A 52.86.212.1 registry-origin.docker.io. 60 IN A 52.22.205.209 registry-origin.docker.io. 60 IN A 52.20.35.36 [15:38:16.655][Proxy ][Info ] 2016/04/20 15:38:16 Got response ;; opcode: QUERY, status: NOERROR, id: 15494 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;registry-1.docker.io. IN AAAA ;; ANSWER SECTION: registry-1.docker.io. 60 IN CNAME registry-origin.docker.io. ;; AUTHORITY SECTION: docker.io. 900 IN SOA ns-513.awsdns-00.net. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400 [15:38:31.590][Proxy ][Info ] 2016/04/20 15:38:31 Handle DNS query ;; opcode: QUERY, status: NOERROR, id: 28666 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;index.docker.io. IN AAAA [15:38:31.594][Proxy ][Info ] 2016/04/20 15:38:31 Search for dns server... [15:38:31.600][Proxy ][Info ] 2016/04/20 15:38:31 Handle DNS query ;; opcode: QUERY, status: NOERROR, id: 59735 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;index.docker.io. IN A [15:38:31.616][Proxy ][Info ] 2016/04/20 15:38:31 Serveur : UnKnown [15:38:31.619][Proxy ][Info ] Address: fe80::237:b7ff:xxxx:xxxx [15:38:31.623][Proxy ][Info ] [15:38:31.627][Proxy ][Info ] [15:38:31.630][Proxy ][Info ] 2016/04/20 15:38:31 Found dns server fe80::237:b7ff:xxxx:xxxx [15:38:31.633][Proxy ][Info ] 2016/04/20 15:38:31 Forward DNS query on udp to [fe80::237:b7ff:xxxx:xxxx]:53 [15:38:31.637][Proxy ][Info ] 2016/04/20 15:38:31 Forward DNS query on udp to [fe80::237:b7ff:xxxx:xxxx]:53 [15:38:31.649][Proxy ][Info ] 2016/04/20 15:38:31 Got response ;; opcode: QUERY, status: NOERROR, id: 59735 ;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;index.docker.io. IN A ;; ANSWER SECTION: index.docker.io. 300 IN CNAME elb-io.us-east-1.aws.dckr.io. elb-io.us-east-1.aws.dckr.io. 900 IN CNAME us-east-1-elbio-rm5bon1qaeo4-623296237.us-east-1.elb.amazonaws.com. us-east-1-elbio-rm5bon1qaeo4-623296237.us-east-1.elb.amazonaws.com. 60 IN A 52.4.72.58 us-east-1-elbio-rm5bon1qaeo4-623296237.us-east-1.elb.amazonaws.com. 60 IN A 52.73.94.64 us-east-1-elbio-rm5bon1qaeo4-623296237.us-east-1.elb.amazonaws.com. 60 IN A 52.72.231.247 [15:38:31.653][Proxy ][Info ] 2016/04/20 15:38:31 Got response ;; opcode: QUERY, status: NOERROR, id: 28666 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;index.docker.io. IN AAAA ;; ANSWER SECTION: index.docker.io. 300 IN CNAME elb-io.us-east-1.aws.dckr.io. elb-io.us-east-1.aws.dckr.io. 900 IN CNAME us-east-1-elbio-rm5bon1qaeo4-623296237.us-east-1.elb.amazonaws.com. ;; AUTHORITY SECTION: us-east-1.elb.amazonaws.com. 60 IN SOA ns-1119.awsdns-11.org. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 60 [15:39:01.640][Proxy ][Info ] 2016/04/20 15:39:01 proxy << POST /v1.23/images/create?fromImage=alpine%3Alatest

disabling IPv6 on host and/or using Google DNS servers didn’t help.


(Bazilio91) #9

Had same error, but different log:

[09:02:16.685][Proxy ][Info ] 2016/04/20 09:02:16 Found dns server 192.168.88.1 [09:02:16.687][Proxy ][Info ] 2016/04/20 09:02:16 Forward DNS query on udp to 192.168.88.1:53 [09:02:16.689][Proxy ][Info ] 2016/04/20 09:02:16 Forward DNS query on udp to 192.168.88.1:53 [09:02:16.691][Proxy ][Info ] 2016/04/20 09:02:16 Exchange error: read udp 192.168.88.254:52616->192.168.88.1:53: wsarecv: A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram into was smaller than the datagram itself. [09:02:16.693][Proxy ][Info ] 2016/04/20 09:02:16 Exchange error: read udp 192.168.88.254:52617->192.168.88.1:53: wsarecv: A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram into was smaller than the datagram itself.

Switched from router dns to google dns helped.


(Kgersen) #10

same issue with latest update (1.11.0-beta8 from today).


(Sarah) #11

I’m a “me too” for this one.

I got my Docker for Mac & PC beta keys today and have been so far unable to get Docker to work at all on my Windows 10 (Build 10586.218) host. (Docker 1.11.0 beta 8, git commit 4dc5990)

I’ve tried both using my standard WiFi connection as well as wired tethering to my iPhone, and they both give the same thing: a relatively slow timeout followed by a failure saying that the network timed out. I tried rebooting the machine as well as restarting Docker and resetting several times. I even tried changing network adapters, deleting the HyperV machine and switch, and trying again.

I do notice that in the HyperV manager, the virtual switch shows up as an “internal only” adapter: not sure if this is expected. There’s not much in the main logs.

Reproducing is easy: I haven’t succeeded in even running the hello world, as every attempt to pull fails.


(Christianhuening) #12

Same here. Can’t add much to the discussion though. I’ve got no special setup here, Thinks to mention:

  • I’ve got Cisco AnyConnect installed (but not used during test)
  • No particular errors in die docker logs. The correct DNS Server is used and the query is executed quite nicely.

(Saschabe) #13

After updating, I’m broken again. ipv6 disabling doesn’t seem to help :frowning:


(David Buksbaum) #14

I disabled IPv6 then restarted Docker, and it worked.

David


(Dvenske) #15

What worked for me was switching from my custom DNS settings to google (8.8.8.8, 8.8.4.4) and then I had to disable and re-enable the vEthernet (Docker NAT) network adaptor in:
Control Panel\All Control Panel Items\Network Connections

Hope that helps


(Kgersen) #16

still bugged with 1.11.0-beta9 (build: 2131)


(Justinp) #17

Here are the logs from a fresh install nothing special. No acrylic DNS or anything just a failure when it comes to resolving DNS. I am not sure where to look on the HyperV side or my Machine side.

[14:02:29.244][Program        ][Info   ] Starting on: 4/29/2016 2:02:29 PM
[14:02:29.246][Program        ][Info   ] Resources: C:\Program Files\Docker\Docker\Resources
[14:02:29.249][Program        ][Info   ] OS: Windows 10 Pro
[14:02:29.253][Program        ][Info   ] Edition: Professional
[14:02:29.256][Program        ][Info   ] Id: 1511
[14:02:29.258][Program        ][Info   ] Build: 10586
[14:02:29.261][Program        ][Info   ] BuildLabName: 10586.212.amd64fre.th2_release_sec.160328-1908
[14:02:29.265][Program        ][Info   ] Id: 296B742E-4408-4BEB-8F12-A7F3895E52D0
[14:02:29.271][Program        ][Info   ] Sha1: 899f53f30cc2a01393905635acc7344998633e5d
[14:02:29.274][Program        ][Info   ] You can send feedback, including this log file, at https://forums.docker.com/c/docker-for-windows
[14:02:30.841][HyperV         ][Info   ] Checking for Hyper-V Windows optional feature
[14:02:30.856][PowerShell     ][Info   ] Run script...
[14:02:32.152][HyperV         ][Info   ] Hyper-V Windows feature is enabled
[14:02:32.156][HyperV         ][Info   ] Checking for Hyper-V Service State
[14:02:32.162][PowerShell     ][Info   ] Run script with parameters: -Check True...
[14:02:38.026][HyperV         ][Info   ] Hyper-V is running
[14:02:38.436][Authentication ][Info   ] Checking token
[14:02:38.541][Authentication ][Info   ] Token is valid
[14:02:38.549][Auth           ][Info   ] null credential
[14:02:38.554][Auth           ][Info   ] Invalid credentials retrieved
[14:02:38.559][Firewall       ][Info   ] Opening ports on the firewall for C:\Program Files\Docker\Docker\Resources\com.docker.proxy.exe...
[14:02:38.562][PowerShell     ][Info   ] Run script...
[14:02:38.783][Updater        ][Info   ] Checking for updates on the Beta channel...
[14:02:39.127][Updater        ][Info   ] Found remote version. Version = 1.11.0.2131
[14:02:39.130][Updater        ][Info   ] Local version is up to date.
[14:02:39.134][Updater        ][Info   ] Check for update done.
[14:02:39.810][Firewall       ][Info   ] Ports opened
[14:02:39.813][HyperV         ][Info   ] Creating a virtual machine named MobyLinuxVM
[14:02:39.817][PowerShell     ][Info   ] Run script with parameters: -Create True -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso...
[14:02:40.589][HyperV         ][Info   ] Enabled workaround for Build 10586 VMSwitch issue
[14:02:44.759][HyperV         ][Info   ] Creating Switch: DockerNAT...
[14:02:46.769][HyperV         ][Info   ] Deleted old IP address
[14:02:46.774][HyperV         ][Info   ] Switch created.
[14:02:47.079][HyperV         ][Info   ] Set IP address on switch
[14:02:47.127][HyperV         ][Info   ] Using existing Net NAT: DockerNAT
[14:02:47.385][HyperV         ][Info   ] VHD C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks\MobyLinuxVM.vhdx already exists
[14:02:48.642][HyperV         ][Info   ] Creating VM MobyLinuxVM...
[14:02:50.786][HyperV         ][Info   ] VM created.
[14:02:50.786][Proxy          ][Info   ] Starting com.docker.proxy
[14:02:50.801][HyperV         ][Info   ] Start a virtual machine named MobyLinuxVM
[14:02:50.801][PowerShell     ][Info   ] Run script with parameters: -Start True...
[14:02:50.817][Proxy          ][Info   ] 2016/04/29 14:02:50 dhcp server: ready
[14:02:50.833][Proxy          ][Info   ] 2016/04/29 14:02:50 poison pill: ready
[14:02:50.839][Proxy          ][Info   ] 2016/04/29 14:02:50 dns server: ready
[14:02:50.842][Proxy          ][Info   ] 2016/04/29 14:02:50 docker proxy (on deprecated port): ready
[14:02:50.846][Proxy          ][Info   ] 2016/04/29 14:02:50 docker proxy: ready
[14:02:53.375][HyperV         ][Info   ] Starting VM MobyLinuxVM...
[14:02:57.014][HyperV         ][Info   ] Wait for the VM to get an IP address
[14:02:58.038][HyperV         ][Info   ] Wait for the VM to get an IP address
[14:02:59.054][HyperV         ][Info   ] Wait for the VM to get an IP address
[14:03:00.072][HyperV         ][Info   ] Wait for the VM to get an IP address
[14:03:01.090][HyperV         ][Info   ] Wait for the VM to get an IP address
[14:03:01.614][Proxy          ][Info   ] 2016/04/29 14:03:01 dhcp: Discover from 00:15:5d:4b:01:10
[14:03:01.618][Proxy          ][Info   ] 2016/04/29 14:03:01 dhcp: Offering 10.0.75.2 to 00:15:5d:4b:01:10
[14:03:01.674][Proxy          ][Info   ] 2016/04/29 14:03:01 dhcp: Request from 00:15:5d:4b:01:10
[14:03:01.678][Proxy          ][Info   ] 2016/04/29 14:03:01 dhcp: Acking 10.0.75.2 to 00:15:5d:4b:01:10
[14:03:01.681][Proxy          ][Info   ] 2016/04/29 14:03:01 Invalidate cache
[14:03:02.421][HyperV         ][Info   ] Wait for the VM to get an IP address
[14:03:02.449][Proxy          ][Info   ] 2016/04/29 14:03:02 Handle DNS query ;; opcode: QUERY, status: NOERROR, id: 28870 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0  ;; QUESTION SECTION: ;docker.	IN	 A 
[14:03:02.457][Proxy          ][Info   ] 2016/04/29 14:03:02 Search for dns server...
[14:03:03.436][HyperV         ][Info   ] Wait for the VM to get an IP address
[14:03:04.451][HyperV         ][Info   ] Wait for the VM to get an IP address
[14:03:05.466][HyperV         ][Info   ] Wait for the VM to get an IP address
[14:03:06.480][HyperV         ][Info   ] Wait for the VM to get an IP address
[14:03:07.785][HyperV         ][Info   ] The VM MobyLinuxVM started on 10.0.75.2
[14:03:07.792][Notifications  ][Info   ] Docker is running
[14:03:08.485][Proxy          ][Info   ] 2016/04/29 14:03:08 DNS request timed out.
[14:03:08.488][Proxy          ][Info   ]     timeout was 2 seconds.
[14:03:08.492][Proxy          ][Info   ] Server:  UnKnown
[14:03:08.495][Proxy          ][Info   ] Address:  127.0.0.1
[14:03:08.498][Proxy          ][Info   ] 
[14:03:08.502][Proxy          ][Info   ] DNS request timed out.
[14:03:08.505][Proxy          ][Info   ]     timeout was 2 seconds.
[14:03:08.508][Proxy          ][Info   ] DNS request timed out.
[14:03:08.511][Proxy          ][Info   ]     timeout was 2 seconds.
[14:03:08.515][Proxy          ][Info   ] 
[14:03:08.518][Proxy          ][Info   ] 2016/04/29 14:03:08 Fetch error: Unable to find name server
[14:04:38.873][Proxy          ][Info   ] 2016/04/29 14:04:38 dhcp: Discover from b8:c7:5d:ce:d8:f6
[14:04:38.876][Proxy          ][Info   ] 2016/04/29 14:04:38 dhcp: Dropped because it doesn't come from an Hyperv VM b8:c7:5d:ce:d8:f6
[14:04:39.283][Proxy          ][Info   ] 2016/04/29 14:04:39 dhcp: Request from b8:c7:5d:ce:d8:f6
[14:04:39.286][Proxy          ][Info   ] 2016/04/29 14:04:39 dhcp: Dropped because it doesn't come from an Hyperv VM b8:c7:5d:ce:d8:f6
[14:04:40.669][Proxy          ][Info   ] 2016/04/29 14:04:40 dhcp: Request from b8:c7:5d:ce:d8:f6
[14:04:40.672][Proxy          ][Info   ] 2016/04/29 14:04:40 dhcp: Dropped because it doesn't come from an Hyperv VM b8:c7:5d:ce:d8:f6
[14:07:57.142][Proxy          ][Info   ] 2016/04/29 14:07:57 dhcp: Discover from 24:fd:52:13:32:e0
[14:07:57.146][Proxy          ][Info   ] 2016/04/29 14:07:57 dhcp: Dropped because it doesn't come from an Hyperv VM 24:fd:52:13:32:e0
[14:07:57.551][Proxy          ][Info   ] 2016/04/29 14:07:57 dhcp: Request from 24:fd:52:13:32:e0
[14:07:57.555][Proxy          ][Info   ] 2016/04/29 14:07:57 dhcp: Dropped because it doesn't come from an Hyperv VM 24:fd:52:13:32:e0

(Jamespaxi) #19

Hi people,

just thought I’d share some info too. Having the same issue with a clean install of beta9.

There seem to be no DNS issues on my end, so it may as well be a different problem.


Error:

PS C:\Users\*****> docker pull redis
Using default tag: latest
Pulling repository docker.io/library/redis
Network timed out while trying to connect to https://index.docker.io/v1/repositories/library/redis/images. You may want to check your internet connection or if you are behind a proxy.

Logs:

[17:11:21.802][Proxy          ][Info   ] 2016/04/30 17:11:21 Found dns server 8.8.8.8
[17:11:21.804][Proxy          ][Info   ] 2016/04/30 17:11:21 Forward DNS query on udp to 8.8.8.8:53
[17:11:21.810][Proxy          ][Info   ] 2016/04/30 17:11:21 Got response ;; opcode: QUERY, status: NXDOMAIN, id: 7994 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0  ;; QUESTION SECTION: ;docker.	IN	 A  ;; AUTHORITY SECTION: .	1421	IN	SOA	a.root-servers.net. nstld.verisign-grs.com. 2016043000 1800 900 604800 86400 
[17:11:22.162][HyperV         ][Info   ] Wait for the VM to get an IP address
[17:11:23.175][HyperV         ][Info   ] Wait for the VM to get an IP address
[17:11:24.334][HyperV         ][Info   ] The VM MobyLinuxVM started on 10.0.75.2
[17:11:24.339][Notifications  ][Info   ] Docker is running
[17:11:32.161][Proxy          ][Info   ] 2016/04/30 17:11:32 proxy >> GET /v1.23/info
[17:11:32.164][Proxy          ][Info   ] 2016/04/30 17:11:32 Dial 10.0.75.2:2375
[17:11:32.170][Proxy          ][Info   ] 2016/04/30 17:11:32 Lookup IP for 10.0.75.2:2375
[17:11:32.173][Proxy          ][Info   ] 2016/04/30 17:11:32 [10.0.75.2]
[17:11:32.179][Proxy          ][Info   ] 2016/04/30 17:11:32 Dial IP 10.0.75.2:2375
[17:11:32.391][Proxy          ][Info   ] 2016/04/30 17:11:32 proxy << GET /v1.23/info
[17:11:32.413][Proxy          ][Info   ] 2016/04/30 17:11:32 proxy >> POST /v1.23/images/create?fromImage=redis%3Alatest
[17:11:32.416][Proxy          ][Info   ] 2016/04/30 17:11:32 Dial 10.0.75.2:2375
[17:11:32.419][Proxy          ][Info   ] 2016/04/30 17:11:32 Dial IP 10.0.75.2:2375
[17:11:32.423][Proxy          ][Info   ] 2016/04/30 17:11:32 Handle DNS query ;; opcode: QUERY, status: NOERROR, id: 19777 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0  ;; QUESTION SECTION: ;registry-1.docker.io.	IN	 A 
[17:11:32.426][Proxy          ][Info   ] 2016/04/30 17:11:32 Search for dns server...
[17:11:32.429][Proxy          ][Info   ] 2016/04/30 17:11:32 Handle DNS query ;; opcode: QUERY, status: NOERROR, id: 31252 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0  ;; QUESTION SECTION: ;registry-1.docker.io.	IN	 AAAA 
[17:11:32.479][Proxy          ][Info   ] 2016/04/30 17:11:32 Server:  google-public-dns-a.google.com
[17:11:32.482][Proxy          ][Info   ] Address:  8.8.8.8
[17:11:32.485][Proxy          ][Info   ] 
[17:11:32.488][Proxy          ][Info   ] 
[17:11:32.490][Proxy          ][Info   ] 2016/04/30 17:11:32 Found dns server 8.8.8.8
[17:11:32.493][Proxy          ][Info   ] 2016/04/30 17:11:32 Forward DNS query on udp to 8.8.8.8:53
[17:11:32.496][Proxy          ][Info   ] 2016/04/30 17:11:32 Forward DNS query on udp to 8.8.8.8:53
[17:11:32.498][Proxy          ][Info   ] 2016/04/30 17:11:32 Got response ;; opcode: QUERY, status: NOERROR, id: 31252 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0  ;; QUESTION SECTION: ;registry-1.docker.io.	IN	 AAAA  ;; ANSWER SECTION: registry-1.docker.io.	45	IN	CNAME	registry-origin.docker.io.  ;; AUTHORITY SECTION: docker.io.	449	IN	SOA	ns-513.awsdns-00.net. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400 
[17:11:32.503][Proxy          ][Info   ] 2016/04/30 17:11:32 Got response ;; opcode: QUERY, status: NOERROR, id: 19777 ;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0  ;; QUESTION SECTION: ;registry-1.docker.io.	IN	 A  ;; ANSWER SECTION: registry-1.docker.io.	58	IN	CNAME	registry-origin.docker.io. registry-origin.docker.io.	58	IN	A	52.21.181.211 registry-origin.docker.io.	58	IN	A	54.173.98.13 registry-origin.docker.io.	58	IN	A	54.88.244.155 
[17:11:47.417][Proxy          ][Info   ] 2016/04/30 17:11:47 Handle DNS query ;; opcode: QUERY, status: NOERROR, id: 41593 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0  ;; QUESTION SECTION: ;index.docker.io.	IN	 AAAA 
[17:11:47.420][Proxy          ][Info   ] 2016/04/30 17:11:47 Search for dns server...
[17:11:47.424][Proxy          ][Info   ] 2016/04/30 17:11:47 Handle DNS query ;; opcode: QUERY, status: NOERROR, id: 14200 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0  ;; QUESTION SECTION: ;index.docker.io.	IN	 A 
[17:11:47.479][Proxy          ][Info   ] 2016/04/30 17:11:47 Server:  google-public-dns-a.google.com
[17:11:47.482][Proxy          ][Info   ] Address:  8.8.8.8
[17:11:47.485][Proxy          ][Info   ] 
[17:11:47.487][Proxy          ][Info   ] 
[17:11:47.489][Proxy          ][Info   ] 2016/04/30 17:11:47 Found dns server 8.8.8.8
[17:11:47.492][Proxy          ][Info   ] 2016/04/30 17:11:47 Forward DNS query on udp to 8.8.8.8:53
[17:11:47.494][Proxy          ][Info   ] 2016/04/30 17:11:47 Forward DNS query on udp to 8.8.8.8:53
[17:11:47.501][Proxy          ][Info   ] 2016/04/30 17:11:47 Got response ;; opcode: QUERY, status: NOERROR, id: 14200 ;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0  ;; QUESTION SECTION: ;index.docker.io.	IN	 A  ;; ANSWER SECTION: index.docker.io.	223	IN	CNAME	elb-io.us-east-1.aws.dckr.io. elb-io.us-east-1.aws.dckr.io.	711	IN	CNAME	us-east-1-elbio-rm5bon1qaeo4-623296237.us-east-1.elb.amazonaws.com. us-east-1-elbio-rm5bon1qaeo4-623296237.us-east-1.elb.amazonaws.com.	14	IN	A	52.72.231.247 us-east-1-elbio-rm5bon1qaeo4-623296237.us-east-1.elb.amazonaws.com.	14	IN	A	52.4.72.58 us-east-1-elbio-rm5bon1qaeo4-623296237.us-east-1.elb.amazonaws.com.	14	IN	A	52.73.94.64 
[17:11:47.524][Proxy          ][Info   ] 2016/04/30 17:11:47 Got response ;; opcode: QUERY, status: NOERROR, id: 41593 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 0  ;; QUESTION SECTION: ;index.docker.io.	IN	 AAAA  ;; ANSWER SECTION: index.docker.io.	299	IN	CNAME	elb-io.us-east-1.aws.dckr.io. elb-io.us-east-1.aws.dckr.io.	145	IN	CNAME	us-east-1-elbio-rm5bon1qaeo4-623296237.us-east-1.elb.amazonaws.com.  ;; AUTHORITY SECTION: us-east-1.elb.amazonaws.com.	58	IN	SOA	ns-1119.awsdns-11.org. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 60

(Christianhuening) #20

Exactly the same situation here as @jamespaxi is reporting. Log looks the same, error as well.
docker Beta 9, windows 10


(Kgersen) #21

same issue with : Version 1.11.1-beta10 (build: 2446)