Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] The requested image's platform (linux/arm64) does not match the detected host platform (linux/arm/v8) #312

Closed
1 task done
flippinger opened this issue Nov 16, 2023 · 2 comments

Comments

@flippinger
Copy link

flippinger commented Nov 16, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The wireguard container is stuck in "Restarting" state (when I run docker ps)

pi@pi:/opt $ docker compose up wireguard
WARN[0000] The "proxy" variable is not set. Defaulting to a blank string. 
[+] Running 2/2
 ✔ Container wireguard                                                                                                                                    Recreated                                                                                         3.2s 
 ! wireguard The requested image's platform (linux/arm64) does not match the detected host platform (linux/arm/v8) and no specific platform was requested                                                                                                   0.0s 
Attaching to wireguard
wireguard exited with code 0

apparently more people have this problem: https://www.reddit.com/r/WireGuard/comments/15llgee/wireguard_docker_container_the_requested_images/

Expected Behavior

It should start successfully

Steps To Reproduce

  1. create docker-compose attached below
  2. run docker-compose up wireguard
  3. it does not start

Environment

I have a Raspberry Pi 4.

$ uname -a
Linux pi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux
$ getconf LONG_BIT
64
$ docker info
Client: Docker Engine - Community
 Version:    24.0.6
 [...]
 Kernel Version: 6.1.21-v8+
 Operating System: Debian GNU/Linux 11 (bullseye)
 OSType: linux
 Architecture: aarch64
 CPUs: 4
 Total Memory: 3.704GiB

How docker service was installed:

sudo apt-get install docker-ce

CPU architecture:
arm64

Docker creation:

wireguard:
    image: lscr.io/linuxserver/wireguard:arm64v8-latest
    container_name: wireguard
    cap_add:
      - NET_ADMIN
      - SYS_MODULE
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/London
      - SERVERURL=censored #optional
      - SERVERPORT=51820 #optional
      - PEERS=phone, laptop
      - PEERDNS=auto #optional
      - INTERNAL_SUBNET=10.13.13.0 #optional
      - ALLOWEDIPS=0.0.0.0/0 #full tunnel always
    volumes:
      - /opt/wireguard:/config
      - /lib/modules:/lib/modules
      - /etc/resolv.conf:/etc/resolv.conf:ro
    ports:
      - 51820:51820/udp
    sysctls:
      - net.ipv4.conf.all.src_valid_mark=1
    restart: unless-stopped

Container logs

pi@pi:/opt $ docker logs wireguard
pi@pi:/opt $ 
Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@thespad
Copy link
Member

thespad commented Nov 16, 2023

https://www.linuxserver.io/armhf

You've got a mixed kernel/userspace install as a result of Raspbian forcibly upgrading your kernel to 64-bit and as a result you can't run most images, even forcing the architecture via the tag.

You need to install a pure 64-bit OS as we (and many others) no longer support 32-bit arm platforms.

@thespad thespad closed this as completed Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants