Docker Community Forums

Share and learn in the Docker community.

Docker and WSL error.

docker

(Aaranda9202) #1

Recently started to use Docker in Windows because that’s the enviroument where I work. I don’t have any problem connecting WSL with Windows Docker an using it for first instance.

After reboot my laptop the problems cames to me. When I’m trying to create an image I get the next error:

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

Is so weird beacause if uninstall windows docker and reinstall it, everything works but if reboot or shut down my laptop, the problem comes again.


(Bryce Ryan) #2

This sounds like your workstation is conflicted about what sites and ports it can use. That is, on install, docker for windows updates the windows firewall settings, and up on a reboot, your system decides to close things up again. It could also be a site blocking thing with some other piece of low-level software on your workstation.

It may be worth checking your firewall, antivirus, and similar software settings to see if one of them is preventing access to the Docker Hub (which is what lives at registry-1.docker.io).

Best of luck!