Hello, I have been having a problem for the last couple of weeks that I cannot resolve. I wanted to add containers to my raspi, but got this error when pulling images.
Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on 8.8.8.8:53: dial udp 8.8.8.8:53: connect: network is unreachable.
See 'docker run --help'.
I have looked at other forum posts, but I have found nothing that fixes it. mind that I am new to docker and still don’t know a lot about it.
any help would be appreciated
If your host has DNS problems, then nothing that requires DNS name resolution will work. The same holds true for docker login, docker pull, docker push.
You need to fix the reachability problem (no internet access? blocked by firewall? no route?) to the dns server.
Also: are you really running Docker Desktop for Linux on a Rasperry Pi?
ok I have looked around a bit more, and noticed that my mcvlan works and containers work, and there is a conflict that doesn’t allow the actual raspberry pi on the internet. will try to clear the conflict.
also yes, I am not running docker desktop on my raspberry pi, but I couldn’t find a better tag that contained both linux and docker.
I have tried moving everything to my mcvlan network, in case there was some sort of conflict, but that didn’t fix anything. my containers still work perfectly, it is just the actual pi that has problems
That’s what it looked like from the get go. That’s why I asked you to run the curl command in the terminal. You must have some sort of routing/firewall issue.
When you say that you moved everything to you macvlan network, do you mean a vlan for your baremetal machines and/or vms, or are you referring to containers only?
I was trying ti install nginx proxy manager on my homelab and got the same error search brought me here and I ran the command. Got thei back as an error
I have a similar issue, but in my case I’m getting a failure when I try to update stickers images in my Unraid home server.
When I try updating the docker image through the community apps UI, I got this error:
Error: Get "https://registry-1.docker.io/v2/binhex/arch-prowlarr/manifests/sha256:9f90fada74de259bd23ea3224fda01289e299385c7bb81d4550ffc61b4792d4f": dial tcp [2600:1f18:2148:bc01:20a3:9c3e:d4a7:9fb]:443: connect: network is unreachable
Which led me to this thread.
I ran curl -iL https://registry-1.docker.io/v2 from my server command line, and this is what I get:
I already tried contacting my internet provider since I switched to a new one recently and I haven’t had such issues before, but they say they’re not blocking any such adress.
I had the same issue here. I use Pi-hole as my DNS Server, and after some investigation I found out that the /etc/resolv.conf was actually pointing to my router (eg. 198.168.0.1), so I just changed my nameserver to my Pi-hole IP and the issue was resolved.