Report this

What is the reason for this report?

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

Posted on January 19, 2022

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

How to Install Docker Compose on Ubuntu (Step-by-Step Guide)

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)



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!

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.