# DockerHub: Client.Timeout exceeded while awaiting headers

**URL:** <https://forums.suse.com/t/dockerhub-client-timeout-exceeded-while-awaiting-headers/9562>\
**Category:** Rancher 1.x\
**Created:** [February 20, 2018, 6:00pm UTC](https://forums.suse.com/t/dockerhub-client-timeout-exceeded-while-awaiting-headers/9562 "2018-02-20T18:00:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rbuck](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rbuck/32/3705_2.png) [@rbuck](https://forums.suse.com/u/rbuck)\
**Post date:** [February 20, 2018, 6:00pm UTC](https://forums.suse.com/t/dockerhub-client-timeout-exceeded-while-awaiting-headers/9562/1 "2018-02-20T18:00:13Z")

</div>

What does this mean?

API error (500): {“message”:“Get [https://registry-1.docker.io/v2/:](https://registry-1.docker.io/v2/:) net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)”}

More specifically, how do we run Rancher in AWS to create a K8S cluster and NOT run into pedantic issues?

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [February 20, 2018, 6:09pm UTC](https://forums.suse.com/t/dockerhub-client-timeout-exceeded-while-awaiting-headers/9562/2 "2018-02-20T18:09:56Z")

</div>

It means docker can’t pull images from the registry because there’s no outbound internet, or it’s blocked. “Internet access” is not a “pedantic issue”.

---

<div class="post-metadata">

**Author:** ![rbuck](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rbuck/32/3705_2.png) [@rbuck](https://forums.suse.com/u/rbuck)\
**Post date:** [February 20, 2018, 6:28pm UTC](https://forums.suse.com/t/dockerhub-client-timeout-exceeded-while-awaiting-headers/9562/3 "2018-02-20T18:28:55Z")

</div>

The VPC and Security Group is set up correctly. When logged into the Rancher Server host, I can curl external hosts such as Docker Hub. When I am logged into the container running the server, CURL works there too. Hosts inside the VPC are able to get out. The issue seems to be either bad documentation, or an issue in Rancher.

Again, is there clear, accurate, authoritative documentation on how to set this up? Better, do you have a set of Terraform scripts that are kept up to date by engineering, that are tested every day, that I can use to set up the environment?

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [February 20, 2018, 7:27pm UTC](https://forums.suse.com/t/dockerhub-client-timeout-exceeded-while-awaiting-headers/9562/4 "2018-02-20T19:27:04Z")

</div>

Images are pulled by the docker daemon on the host (not on the server, or in the server container), and Rancher has nothing to do with it; We call the docker remote api and tell it to launch a a container with this spec, docker pulls the image and starts the container.

Try `docker pull ubuntu:trusty` or something on a host. If a simple curl works but pulling doesn’t, maybe the MTU on the host is wrong?

---

<div class="post-metadata">

**Author:** ![rbuck](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rbuck/32/3705_2.png) [@rbuck](https://forums.suse.com/u/rbuck)\
**Post date:** [February 20, 2018, 10:12pm UTC](https://forums.suse.com/t/dockerhub-client-timeout-exceeded-while-awaiting-headers/9562/5 "2018-02-20T22:12:23Z")

</div>

I now have a working cluster. I have a simple, 7-step installation process nailed down and working flawlessly.

I found four fundamental mistakes in your documentation. I would like to suggest you find some new-hire and have them install Rancher with no help at all, and document the steps. They should be able to get this down to 7 steps as I did.

Hint: Go read your co-opetitions’ documentation, it works!

---

<div class="post-metadata">

**Author:** ![Fraser\_Goffin](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/fraser_goffin/32/6608_2.png) [@Fraser\_Goffin](https://forums.suse.com/u/Fraser_Goffin)\
**Post date:** [February 25, 2018, 3:30pm UTC](https://forums.suse.com/t/dockerhub-client-timeout-exceeded-while-awaiting-headers/9562/6 "2018-02-25T15:30:32Z")

</div>

Is there a need to be quite so confrontational ? This is an open source community which, like many others, is made stronger because of the positive contributions of its membership. I agree that every part of the Rancher documentation is not perfect, so if you have found some flaws and have some suggestions about how it can be improved then, instead of whinging, make a positive contribution yourself for the benefit of everybody!

---

<div class="post-metadata">

**Author:** ![dineshvarmabudagam](https://avatars.discourse-cdn.com/v4/letter/d/57b2e6/32.png) [@dineshvarmabudagam](https://forums.suse.com/u/dineshvarmabudagam)\
**Post date:** [March 11, 2020, 1:22pm UTC](https://forums.suse.com/t/dockerhub-client-timeout-exceeded-while-awaiting-headers/9562/7 "2020-03-11T13:22:05Z")

</div>

Error response from daemon: Get [https://dockerregistry:port/v2/](https://dockerregistry/v2/): net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers

i am getting an error like this when i m trying to pull the code from docker registry to dev server.  
can anyone please resolve it  
thanks in advance
