Since yesterday out of nowhere I'm not able to pull images anymore. And I can't login into docker with docker login
. The same error appears:
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 not behind any proxy and all of my docker container itself work well. I'm running it at home and the only reverse proxy I use is running in a container and can't be the reason.
Running on:
This helped me:
sudo nano /etc/resolv.conf
Set the nameserver to 8.8.8.8
.
Restart the docker demon.
sudo systemctl restart docker
Try to update /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
I added nameserver 8.8.8.8 in all my worker nodes and the issue was resolved
In my case, it gets resolved after configuring the proxy. I am using Windows Docker (Refer 'Proxy Configuration' section from here for more details)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With