SoftEtherVPN icon indicating copy to clipboard operation
SoftEtherVPN copied to clipboard

linux/arm/v8 platform not supported

Open SinaYa opened this issue 2 years ago • 6 comments

I'm trying to run the docker image using this command: docker run --name --platform linux/arm/v8 vpnconf -e SPW=<password> -e HPW=<password> siomiz/softethervpn echo

and I get this error: docker: Error response from daemon: pull access denied for linux/arm/v8, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.

SinaYa avatar Nov 03 '21 20:11 SinaYa

Fix as of now:

git clone [email protected]:siomiz/SoftEtherVPN.git
cd SoftEtherVPN
docker build -t siomiz/softethervpn:alpine -f Dockerfile.alpine .

siomiz, would you be so kind as to enable multi-arch builds for DockerHub so the arm64 image would be available to everyone?

paskal avatar Dec 14 '21 07:12 paskal

Ok, I think I did the manifest thing right... siomiz/softethervpn:latest and siomiz/softethervpn:alpine have linux/arm64/v8 now. (I'm assuming there is no such thing as linux/arm/v8?)

siomiz avatar Dec 15 '21 00:12 siomiz

It works alright, thank you!

image

paskal avatar Dec 15 '21 23:12 paskal

image Actually, judging by my other image built using docker buildx, I think there should be no /v8 part in, so your `latest` should have the same image as `latest-arm64` has currently, with the same arch.

paskal avatar Dec 15 '21 23:12 paskal

Thank you for confirming! I kinda cheated by building the arm64(/v8) image on an actual ARMv8 device, a Raspberry Pi 4B using 64-bit RasPi OS. Built and pushed the :arm64-latest image, and created a new manifest for :latest + --amend and that somehow added the /v8 variant tag. Interesting spec...

siomiz avatar Dec 16 '21 00:12 siomiz

You can build both architectures on amd64 Linux by issuing the following command: docker buildx build --pull --platform linux/arm64,linux/amd64 -t siomiz/softethervpn:latest --push ., and if it works as expected - include it into the CI pipeline. Here is documentation.

paskal avatar Dec 18 '21 13:12 paskal

Can you add armv7 too? you can extend your github workflow by adding buildx: https://github.com/maltegrosse/keycloak-multiarch/blob/main/.github/workflows/container.yml#L36

and later add platforms: linux/amd64,linux/arm64,linux/arm

maltegrosse avatar Oct 23 '22 14:10 maltegrosse

Thanks everyone, finally figured out how workflow works with docker buildx...

 docker buildx imagetools inspect siomiz/softethervpn:latest
Name:      docker.io/siomiz/softethervpn:latest
MediaType: application/vnd.docker.distribution.manifest.list.v2+json
Digest:    sha256:ef0281300b33adf4daa30829d5e8df2505b678605712b3d50c34ed4308d8e121
           
Manifests: 
  Name:      docker.io/siomiz/softethervpn:latest@sha256:8bc51c8c6720bf4d4e48d8db49a389edf8ff09c34c6aaf732c57b93424c54313
  MediaType: application/vnd.docker.distribution.manifest.v2+json
  Platform:  linux/amd64
             
  Name:      docker.io/siomiz/softethervpn:latest@sha256:62814df0dc7f323306990dc810557f138e21c73a2027220169d014c2baa13430
  MediaType: application/vnd.docker.distribution.manifest.v2+json
  Platform:  linux/arm64
             
  Name:      docker.io/siomiz/softethervpn:latest@sha256:ba9ec8ecb87d33c9f0b591aae036e7001ea181002c8a5aedac35c7307474a1ed
  MediaType: application/vnd.docker.distribution.manifest.v2+json
  Platform:  linux/arm/v7

siomiz avatar Oct 27 '22 00:10 siomiz