wireguard-ui icon indicating copy to clipboard operation
wireguard-ui copied to clipboard

arm64 docker image

Open zachberger opened this issue 4 years ago • 11 comments

Hi there,

I'd be interested in an arm64 docker image for my raspberry pi wireguard installation. I see there is already an arm64 binary.

Thanks!

zachberger avatar Jun 30 '20 01:06 zachberger

@ngoduykhanh How could I run this with docker in my raspberry pi 3? I downloaded the source code, and then build the docker image, but when I tried to run it, it returned this error: standard_init_linux.go:219: exec user process caused: exec format error

If I check the image, it sais: Build | Docker 20.10.6 on linux, arm

So not sure what I am doing wrong.

jnaav avatar May 08 '21 11:05 jnaav

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 21 '21 20:11 stale[bot]

@ngoduykhanh How could I run this with docker in my raspberry pi 3? I downloaded the source code, and then build the docker image, but when I tried to run it, it returned this error: standard_init_linux.go:219: exec user process caused: exec format error

If I check the image, it sais: Build | Docker 20.10.6 on linux, arm

So not sure what I am doing wrong.

I got similar error to at my Oracle ARM instance. standard_init_linux.go:228: exec user process caused: exec format error

babico avatar Dec 04 '21 02:12 babico

I pushed a docker image ngoduykhanh/wireguard-ui:latest-arm64 that could work on ARM arch.

ngoduykhanh avatar Dec 04 '21 08:12 ngoduykhanh

Thanks, I got it working on my Raspberry Pi 4 by doing:

  • changing the image in docker-compose.yaml to ngoduykhanh/wireguard-ui:latest-arm64
  • changing TARGETARCH in Dockerfile to arm64

Then just running docker-compose build and docker-compose up got it working for me.

florianthonig avatar Jan 07 '22 23:01 florianthonig

I'm using a 32-bit ARM OS (Raspberry Pi OS) but I can't run the docker image.

 $ sudo docker run -ti --rm --platform linux/arm/v7 ngoduykhanh/wireguard-ui
Unable to find image 'ngoduykhanh/wireguard-ui:latest' locally
latest: Pulling from ngoduykhanh/wireguard-ui
Digest: sha256:aea0f09c08733f9c8ea6da3cde28a8e593ee141da6a1bff9a75bb930ae211a91
Status: Image is up to date for ngoduykhanh/wireguard-ui:latest
WARNING: image with reference ngoduykhanh/wireguard-ui was found but does not match the specified platform: wanted linux/arm/v7, actual: linux/amd64
docker: Error response from daemon: image with reference ngoduykhanh/wireguard-ui was found but does not match the specified platform: wanted linux/arm/v7, actual: linux/amd64.

It seems like it's always pulling the amd64 image.

chetbox avatar Mar 16 '22 22:03 chetbox

I published arm64, amd64, armv7 images on https://hub.docker.com/r/isac322/wireguard-ui. The publish pipeline is fully automated using Dependabot. Any releases of this app creates PR on my repo and when I merge it, CI publishes to Docker Hub with new version tag. Please checkout repo https://github.com/isac322/docker_image_wireguard-ui

isac322 avatar Jul 29 '22 08:07 isac322

I pushed a docker image ngoduykhanh/wireguard-ui:latest-arm64 that could work on ARM arch.

The image is wrongly tagged as amd64, so it doesn't work with Docker Swarm.

$ docker image inspect ngoduykhanh/wireguard-ui:latest-arm64 -f '{{.Architecture}}'
amd64

codestation avatar Nov 16 '22 16:11 codestation

Yes, I noticed probs too with the arm image. It runs the webUI fine, but cant open a shell, eg:

$ docker run --rm -it --entrypoint='/bin/sh' ngoduykhanh/wireguard-ui:latest-arm64 
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
exec /bin/sh: exec format error

built it myself on arm64, and did not get this problem.

docker build -t mojothemonkey/wireguard-ui:latest --build-arg TARGETARCH=arm64 . 

mojothemonkey2 avatar Dec 04 '22 21:12 mojothemonkey2