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

linux/arm/v8 platform not supported #96

Closed
SinaYa opened this issue Nov 3, 2021 · 8 comments
Closed

linux/arm/v8 platform not supported #96

SinaYa opened this issue Nov 3, 2021 · 8 comments

Comments

@SinaYa
Copy link

SinaYa commented Nov 3, 2021

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.

@paskal
Copy link

paskal commented Dec 14, 2021

Fix as of now:

git clone git@github.com: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?

@siomiz
Copy link
Owner

siomiz commented Dec 15, 2021

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?)

@paskal
Copy link

paskal commented Dec 15, 2021

It works alright, thank you!

image

@paskal
Copy link

paskal commented Dec 15, 2021

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.

@siomiz
Copy link
Owner

siomiz commented Dec 16, 2021

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...

@paskal
Copy link

paskal commented Dec 18, 2021

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.

@maltegrosse
Copy link

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

@siomiz
Copy link
Owner

siomiz commented Oct 27, 2022

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 siomiz closed this as completed Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants