distroless
distroless copied to clipboard
Java Arm Images
Hi! It seems arm images are built from python and a few other languages, but not for java. Is there any chance java arm images could be added? Thanks!
Pretty sure they are. What image are you using?
Running into the same for the :nonroot tag:
Pulling:
$ docker image pull --platform linux/arm64 gcr.io/distroless/java17:nonroot
nonroot: Pulling from distroless/java17
Digest: sha256:03de932b1aa41385fbe5defae0ac58213251c4620706d4a1257b280eb5a160b5
Inspect:
$ docker image inspect gcr.io/distroless/java17:nonroot --format '{{.RepoDigests}} {{.Os}}/{{.Architecture}}'
[gcr.io/distroless/java17@sha256:03de932b1aa41385fbe5defae0ac58213251c4620706d4a1257b280eb5a160b5] linux/amd64
Noticed in other languages like Python there is tags like "nonroot-arm64":
docker pull gcr.io/distroless/python3:nonroot-arm64
nonroot-arm64: Pulling from distroless/python3
9880fb5de7c7: Pull complete
cf35018713d4: Pull complete
4d704a88b82e: Pull complete
e2cebd955edf: Pull complete
3c2cba919283: Pull complete
Digest: sha256:31d8938f657d503306e46c71579476bb775cc9fcfd58de01bd0572e7725d9a33
Status: Downloaded newer image for gcr.io/distroless/python3:nonroot-arm64
gcr.io/distroless/python3:nonroot-arm64
However this no such images for java like:
docker pull gcr.io/distroless/java17:nonroot-arm64
Error response from daemon: manifest for gcr.io/distroless/java17:nonroot-arm64 not found: manifest unknown: Failed to fetch "nonroot-arm64" from request "/v2/distroless/java17/manifests/nonroot-arm64".
ah right, the "java17" image is not multi-arch. The "java17-debian11" image is though.
So you can do docker pull gcr.io/distroless/java17-debian11:nonroot-arm64
Ah, so there are separate tags (/images) for other architectures. Are there any plans to support true multi architecture images with can be directly used with (docker buildx)[https://docs.docker.com/build/buildx/multiplatform-images/] so that the architecture is automatically resolved?
I currently worked around it with this, seems to work as long as your are in a Dockerfile:
FROM gcr.io/distroless/java17-debian11:nonroot-$TARGETARCH
Is this a duplicate of #606?