windowsdockerdocker-toolbox

Docker Toolbox Tutorial Client.Timeout exceeded while awaiting headers


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.


Solution

  • For anyone else who's looking I found the answer here which led me to here

    Specifically for me these steps were helpful. In case the links break in the future.

    This worked for Windows 10 Home/Docker Toolbox

    1. Right click on wifi icon on bottom right of the screen and open network and sharing center.
    2. Right click on the connection at "connections:"
    3. Click on Properties
    4. Uncheck IPv6
    5. Check IPv4
    6. Click properties
    7. Select radio button Use the following DNS addresses
    8. For preferred use 8.8.8.8
    9. Restart the computer and try again.