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)


Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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