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
    ·
    3 days ago

    But disabling IPv6 in the OS should fix it

    I’ve already followed the instructions I could find to do that, but it didn’t work. Either disabling IPv6 isn’t the solution, or the instructions for how to disable it are incomplete. (You can see comments elsewhere in the thread for more detail.)

    • mlfh@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      3
      ·
      3 days ago

      Can you give us the full output of the following commands?

      ip addr

      sysctl net.ipv6.conf.all.disable_ipv6

      • Zagorath@aussie.zoneOP
        link
        fedilink
        arrow-up
        2
        ·
        3 days ago
        1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
            link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
            inet 127.0.0.1/8 scope host lo
               valid_lft forever preferred_lft forever
        2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
            link/ether b8:27:eb:93:9b:06 brd ff:ff:ff:ff:ff:ff
            inet 192.168.20.40/24 brd 192.168.20.255 scope global dynamic noprefixroute eth0
               valid_lft 81876sec preferred_lft 81876sec
        3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
            link/ether b8:27:eb:c6:ce:53 brd ff:ff:ff:ff:ff:ff
        4: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
            link/ether ce:3e:0d:9b:fa:14 brd ff:ff:ff:ff:ff:ff
            inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
               valid_lft forever preferred_lft forever
        
        net.ipv6.conf.all.disable_ipv6 = 1