Docker on Raspbian unable to pull

As far as I know, Linux supports 3 nameservers maximum. Sometimes it can be seen in resolv.conf as a comment, but I think I saw it in containers. nd once I had network issues when I used a corporate laptop and the company already had two nameservers and I needed to add some more in containers. I don’t remember the exact case, just keep in mind that the actually usable number of nameservers can be limited.

1 Like

Signed up to say this was the solution for me. I have a Raspberry PI 5, Raspberry PI OS v12/bookworm. I am attempting to install immich using these tutorials:

I found when inspecting /etc/resolv.conf that the DNS settings there did not correspond to the DNS settings I had been playing with using the GUI network manager. One to watch out for.

Anyway, in my case my router DNS (192.168.x.x) was first in the list (followed by 8.8.8.8 and 1.1.1.1). I removed the router DNS and set 3 public IPs. Problem solved.

Note I had already set my PI to use IPv4 only in earlier troubleshooting. Not sure if that is a factor here.

Many thanks!

I have the same error:
docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
I can easily pull from windows docker but on pi or debian os under proxmox, I get this error.
DNS are set to 8.8.8.8 and 1.1.1.1 in /etc/resolv.conf.
tried all different solutions and none of them worked. I suspect the issue started after rebooting my router. I also changed the firewall to off and attack protection also is off.

What does a simple

curl https://registry-1.docker.io/v2/

do?

{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":null}]}
I tried everything I found from net as well as AI, but still nothing.I sent mail also to my ISP that maybe they blocked my internet (or filter it) on linux machines, but no answer yet.