I’m currently trying to install Docker on my old Raspberry Pi (3 Model B+) to host some personal projects. When I run docker run hello-world, I get:

Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: Get "https://registry-1.docker.io/v2/library/hello-world/manifests/sha256:ec153840d1e635ac434fab5e377081f17e0e15afab27beb3f726c3265039cfff": dial tcp [2600:1f18:2148:bc00:eff:d3ae:b836:fa07]:443: connect: network is unreachable

My Internet connection does not support IPv6 at all, which would explain why this error occurs. But how do I force docker-pull to only use IPv4?

        • Zagorath@aussie.zoneOP
          link
          fedilink
          English
          arrow-up
          2
          arrow-down
          1
          ·
          3 days ago

          Sorry, maybe I should have explained every single step I tried in the body of the original post. I didn’t, partly because there were just too many and partly because I forgot which methods I had tried and which pages I had visited. But that page is one I’ve seen already.

          It mentions to “blacklist” the module in a file that doesn’t exist. In fact, in a file that’s in a directory that doesn’t exist, which makes me very sceptical about the later claim that creating that file will fix it. /etc/modules-load.d exists, but not /etc/modules.d. I did already try the final suggestion to add that line to the end of /boot/firmware/cmdline.txt though. No luck.

          I think the fact that it’s 6 years old is probably a big part of the reason it didn’t help. Files and directories have moved around. The suggestions in that post are literally just “do this” without any underlying explanation of what it’s doing that could lend to further investigation of the more modern way to do it.

          • iglou@programming.dev
            link
            fedilink
            English
            arrow-up
            2
            ·
            edit-2
            3 days ago

            What version of Pi OS are you running?

            (we can move to DMs if you wish, it will be less polluting, or stay in the comment thread if you don’t feel safe in DMs)

            • Zagorath@aussie.zoneOP
              link
              fedilink
              English
              arrow-up
              1
              ·
              edit-2
              2 days ago

              I’m happy to keep it public if only for the off chance that if we find a solution it might some day help someone else with the same issue. The thread’ll fall down in the rankings naturally over time anyway so I wouldn’t worry about polluting anything for people not actively seeking it out.

              I’m not 100% sure how to find the OS version, but uname -a outputs [...]6.12.25+rpt-rpi-v8[...]. /etc/os-release contains “Debian GNU/Linux 12 (bookworm)”. It should be whatever was latest as of a month or two ago when I installed the OS fresh.

              • iglou@programming.dev
                link
                fedilink
                English
                arrow-up
                2
                ·
                edit-2
                2 days ago

                I have read the rest of the comments to see what you already tried. I was about yo tell you to use sysctl to disable ipv6 but it looks like that is already done.

                As a matter of fact, it looks like you have no ipv6 address at all. Which makes me think that your DNS config might be off, as it shouldn’t even attempt an ipv6 resolution.

                Can you show me the content of /etc/resolv.conf ?

                Also install “dig” if you dont have it already and show the output of

                dig registry-1.docker.io
                
                • Zagorath@aussie.zoneOP
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  edit-2
                  2 days ago
                  $ dig registry-1.docker.io
                  
                  ; <<>> DiG 9.18.33-1~deb12u2-Debian <<>> registry-1.docker.io
                  ;; global options: +cmd
                  ;; Got answer:
                  ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50801
                  ;; flags: qr rd ra; QUERY: 1, ANSWER: 8, AUTHORITY: 0, ADDITIONAL: 1
                  
                  ;; OPT PSEUDOSECTION:
                  ; EDNS: version: 0, flags:; udp: 1232
                  ;; QUESTION SECTION:
                  ;registry-1.docker.io.          IN      A
                  
                  ;; ANSWER SECTION:
                  registry-1.docker.io.   33      IN      A       54.210.249.78
                  registry-1.docker.io.   33      IN      A       44.218.153.24
                  registry-1.docker.io.   33      IN      A       107.20.112.188
                  registry-1.docker.io.   33      IN      A       34.234.222.10
                  registry-1.docker.io.   33      IN      A       34.195.83.243
                  registry-1.docker.io.   33      IN      A       52.21.128.203
                  registry-1.docker.io.   33      IN      A       52.0.248.137
                  registry-1.docker.io.   33      IN      A       52.207.69.161
                  
                  ;; Query time: 47 msec
                  ;; SERVER: 192.168.20.1#53(192.168.20.1) (UDP)
                  ;; WHEN: Tue Aug 12 22:27:45 AEST 2025
                  ;; MSG SIZE  rcvd: 177
                  $ cat /etc/resolv.conf
                  # Generated by NetworkManager
                  search Home
                  nameserver 192.168.20.1
                  

                  edit: oh, and in my router’s configuration:

                  • Primary DNS Server:9.9.9.9
                  • Secondary DNS Server:1.1.1.1
                  • iglou@programming.dev
                    link
                    fedilink
                    English
                    arrow-up
                    2
                    ·
                    2 days ago

                    Well this is getting weird.

                    Have you tried checking if your os has a resolution cashe active? If so, try to flush it.