Docker Toolbox Tutorial Client.Timeout exceeded while awaiting headers

Eric picture Eric · Oct 19, 2017 · Viewed 34.5k times · Source

I'm following the guide at https://docs.docker.com/get-started/part2/#publish-the-image

Throughout the guide I've had trouble with this error sometimes coming up and sometimes when I rerun the commands they will work.

docker push %username%/%repository%:%tag%

I will get a response of Using default tag: latest 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)

I'm using Windows Home with Docker Toolbox.

Please let me know if any additional information is needed.

Answer

Serge Voloshenko picture Serge Voloshenko · Mar 22, 2018

Simply go to the Docker's Settings > Network and change DNS Server radio button to Fixed

enter image description here