Raspberry Pi5 Docker installation not working

Clean install on new Pi5 following Debian | Docker Docs instructions.

>> docker run hello-world

Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: Head "https://registry-1.docker.io/v2/library/hello-world/manifests/latest": dial tcp [2600:1f18:2148:bc02:22:27bd:19a8:870c]:443: connect: network is unreachable

Looks like an authentication issue I cannot work out. Network unreachable is not right - it works just fine. Had a look at the config.json - looks like an ordinary Oauth access token. Tried docker login and get the same issue after entering the OTP.

Any help greatly appreciated!

>> docker info

Client: Docker Engine - Community
 Version:    28.0.1
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.21.1
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.33.1
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 0
 Server Version: 28.0.1
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: bcc810d6b9066471b0b6fa75f557a15a1cbf31bb
 runc version: v1.2.4-0-g6c52b3f
 init version: de40ad0
 Security Options:
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.6.74+rpt-rpi-2712
 Operating System: Debian GNU/Linux 12 (bookworm)
 OSType: linux
 Architecture: aarch64
 CPUs: 4
 Total Memory: 15.81GiB
 Name: pi51
 ID: f92a5379-f0ca-4eec-82b9-3b7f541216b3
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  ::1/128
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No memory limit support
WARNING: No swap limit support

is a very clear error message. It tries to connect with IPv6, have you tried a ping with IPv6 only to registry-1.docker.io?

SOLVED.

My ISP doesn’t support IPv6. For some reason docker was using IPv6 address to communicate. I’ve made IPv4 entries in /etc/hosts for registry-1.docker.io that fixed it.

I’m battling other IP addresses and trying to figure out what entries to put into /etc/hosts file. For instance “[2606:4700::6810:61d7]:443: connect: network is unreachable” when trynig to install a container. But at least the main stuff is working and I can even log in.

Would be amazing if I could tell docker to stop messing about with IPv6.

The right thing would be for your ISP to support IPv6 :sweat_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.