Docker pull results in "Request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"

I’ve implemented the proxy conf fix before, and found it to give me problems on another internet connection. I had to remove the proxy line from /etc/systemd/system/docker.service.d to fix the issue again

Original fix:

# File: /etc/systemd/docker.service.d/http-proxy.conf
[Service]
Environment="HTTP_PROXY=208.123.76.34:8080"
Environment="NO_PROXY=localhost,127.0.0.1"

Updated fix on a new internet connection:

# File: /etc/systemd/docker.service.d/http-proxy.conf
[Service]
Environment="NO_PROXY=localhost,127.0.0.1"
1 Like