Client.Timeout exceeded while awaiting headers
Expected behavior
Download Image and create container
Actual behavior
Unable to find image 'hello-world:latest' locally docker: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers). See 'docker run --help'.
Information
Diagnostic Id: AD27B128-4EC0-4888-9470-22E42CD7DF37/2018-01-12_13-49-18
I try all variations of solution, and they not working for me:
- Set DNS to Fixed 8.8.8.8
- Reset factory/Reinstall docker/Reboot docker or computer
Steps to reproduce the behavior
- Execute command in console: docker run hello-world
``
Same thing here...
I also experience the same issue...
Hi @AleksandrOrlov
Are you using a proxy? If so, what do you have setup in the GUI under settings? Can you run the docker login command
It also looks like the D: drive was unmounted or unreachable according to the logs
[13:11:11.235][ApiProxy ][Info ] time="2018-01-12T13:11:11+07:00" msg="proxy << POST /v1.35/images/create?fromImage=hello-world&tag=latest\n" [13:11:11.236][VpnKit ][Warning] vpnkit.exe: 9f31 Query:0 na:c:r:rn 0 <qs:registry-1.docker.io.localdomain. <AAAA|IN>> an: au: ad: lookup failed: no servers
I had the same problem and following @jasonbivins' instructions in the post above I noticed that I couldn't also run docker login. After fixing the username and password issue I was ready to run docker login and docker run hello-world. Thanks, @jasonbivins for the insight provided.
Same thing here... too but i try switch docker containers can fix him, but can't pull linux platform images...WTF? and i try "docker login" is same too. and i try switch docker config ,some time no change (i restart docker from windows). platform : windows 1709 docker : 17.12.0-ce
interesting enough same docker for win version is working on my work computer, but fails on my home desktop. Both are running Windows 10. login and docker helloworld are failing. Restarts/resets are not helping. Tried disabling system firewall - no difference. My diagnostic file 54D99348-B82A-4DCB-B54B-83982186DA79/2018-01-15_21-11-13
Same thing here... too Tried docker login and restart windows, hyper-v and reinstalled docker
Looks like the registry or Internet is slow and there's no way to set this timeout. That explains the random behavior.
@dElogics it's not random. Two machines connected to the same router, fast internet. One works another does not in 100% cases.
Same thing on our side.
I'm having the same problem and for me it doesn't work with Linux containers but works fine with Windows containers.
Seems to be resolved for me when disabling experimental features.
Yeah this is a known bug, more info here.
Worked for me using @helysousa solution: docker login [registry]. Thanks.
Doesn't work. This makes Docker completely useless for us.
Same problem. I can't download any image.
Same issue. I've tried everything I've seen on Internet but nothing works :(
I also confirm issue but only with docker.io repository. I am able to pull images correctly from other repos like quay,io, gcr.io, elastic.co. Not sure how to reproduce the issue, sometimes images are pulled, sometimes not on different hosts. Docker is behind corporate ssl proxy.
~ $ docker version
Client:
Version: 18.03.1-ce
API version: 1.37
Go version: go1.9.4
Git commit: 9ee9f40
Built: Thu Apr 26 04:27:49 2018
OS/Arch: linux/amd64
Experimental: false
Orchestrator: swarm
Server:
Engine:
Version: 18.03.1-ce
API version: 1.37 (minimum version 1.12)
Go version: go1.9.4
Git commit: 9ee9f40
Built: Thu Apr 26 04:27:49 2018
OS/Arch: linux/amd64
Experimental: false
Docker was working fine and all the sudden I got same error when pulling images.
Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
Changing DNS to 8.8.8.8 / 8.8.4.4 and restarting docker solved my issue.
I also faced same problem. I tried many solutions but what solved my problem was this one- If you are behind a proxy then follow these steps:
- Remove network proxy in Network &Settings. 2.Configure Docker Proxy in following format http://username:password@proxy-server:proxy-port for http proxy replace http by https for https proxy.
eg: http://sumitDubey:password@[email protected]:8080