Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker error on Windows 2016 "Client.Timeout exceeded while awaiting headers"

Tags:

docker

windows

I get the following error when I try to do "docker run" on my Windows 2016.

PS C:\Users\Administrator> docker run microsoft/sample-dotnet
Unable to find image 'microsoft/sample-dotnet:latest' locally
C:\Program Files\Docker\docker.exe: 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 'C:\Program Files\Docker\docker.exe run --help'.

I followed the instructions here to get started.

This is different from this question because this is Windows.

Any ideas?

like image 414
tom Avatar asked Oct 26 '16 00:10

tom


2 Answers

same Problem for Windows. Some people wrote to delete dns 8.8.8.8 from resolve.conf But i added this dns to my Settings (right click on docker icon -> Network -> Set DNS to Fixed (8.8.8.8)

like image 135
Hem Kant Avatar answered Sep 23 '22 16:09

Hem Kant


Go to Docker settings > network > DNS server . change from automatic to fixed ( default is 8.8.8.8 ) . worked on win 10

like image 20
Sai Bhasker Raju Avatar answered Sep 26 '22 16:09

Sai Bhasker Raju