for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Client.Timeout exceeded while awaiting headers

Open AleksandrOrlov opened this issue 8 years ago • 64 comments

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:

  1. Set DNS to Fixed 8.8.8.8
  2. Reset factory/Reinstall docker/Reboot docker or computer

Steps to reproduce the behavior

  1. Execute command in console: docker run hello-world

``

AleksandrOrlov avatar Jan 12 '18 06:01 AleksandrOrlov

Same thing here...

vikingurh avatar Jan 12 '18 09:01 vikingurh

I also experience the same issue...

thomao avatar Jan 12 '18 12:01 thomao

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

jasonbivins avatar Jan 12 '18 17:01 jasonbivins

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.

helysousa avatar Jan 13 '18 07:01 helysousa

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

agui2200 avatar Jan 14 '18 04:01 agui2200

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

pavelpp avatar Jan 15 '18 19:01 pavelpp

Same thing here... too Tried docker login and restart windows, hyper-v and reinstalled docker

OzzyKampha avatar Jan 17 '18 20:01 OzzyKampha

Looks like the registry or Internet is slow and there's no way to set this timeout. That explains the random behavior.

dElogics avatar Jan 18 '18 10:01 dElogics

@dElogics it's not random. Two machines connected to the same router, fast internet. One works another does not in 100% cases.

pavelpp avatar Jan 18 '18 10:01 pavelpp

Same thing on our side.

marcusholl avatar Feb 07 '18 11:02 marcusholl

I'm having the same problem and for me it doesn't work with Linux containers but works fine with Windows containers.

IngoVals avatar Feb 11 '18 23:02 IngoVals

Seems to be resolved for me when disabling experimental features.

mmhh1910 avatar Feb 13 '18 17:02 mmhh1910

Yeah this is a known bug, more info here.

IngoVals avatar Feb 18 '18 21:02 IngoVals

Worked for me using @helysousa solution: docker login [registry]. Thanks.

f-lopes avatar Mar 16 '18 15:03 f-lopes

Doesn't work. This makes Docker completely useless for us.

montao avatar Apr 23 '18 11:04 montao

Same problem. I can't download any image.

YaMolekula avatar May 05 '18 04:05 YaMolekula

Same issue. I've tried everything I've seen on Internet but nothing works :(

garciasa avatar May 28 '18 15:05 garciasa

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

dev-e avatar May 30 '18 08:05 dev-e

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.

cakirilker avatar Jun 11 '18 06:06 cakirilker

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:

  1. 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

sumitdubey022229 avatar Jun 25 '18 12:06 sumitdubey022229