Question

ERROR: Head "": Get "": net/http: request canceled exceeded while awaiting headers)

Connected Tutorial
This question is a follow-up to this tutorial:

ERROR: Head “https://registry-1.docker.io/v2/library/nginx/manifests/alpine”: Get “https://auth.docker.io/token?scope=repository%3Alibrary%2Fnginx%3Apull&service=registry.docker.io”: net/http: request canceled (Client.Timeout exceeded while awaiting headers)

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

I could suggest trying to change your DNS to 8.8.8.8.

You can do that by updating the /etc/systemd/resolved.conf file instead, and under the [Resolve] section set:

[Resolve]
DNS=1.1.1.1 8.8.8.8
FallbackDNS=8.8.4.4

After that restart systemd-resolved:

systemctl status systemd-resolved

Finally to make sure that the change was successful check the status:

systemd-resolve --status

Hope that this helps. Regards, Bobby