Docker does not pull/push image

Sometimes, you might not be able to pull or push a docker image on Windows OS.If so, this post might be helpful.
For example, you try to pull following repository:

C:\>docker pull eclipse-mosquitto: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)

This happen, because of various networking issues:

  1. Firewall is blocking repository URL
  2. Network is not correctly configured.
    This happen sometimes on conferences, when frequently changing the network.
    In my case, it was mostly invalid DNS configuration obtained by DHCP.
  3. Any other local Docker issue, which might be resolved by docker restart.

comments powered by Disqus