AdoptOpenJDK / openjdk-docker

Scripts for creating Docker images of OpenJDK binaries.

Home Page:https://hub.docker.com/_/adoptopenjdk/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ERROR [linux/arm/v7 internal] load metadata for docker.io/adoptopenjdk/openjdk13:debianslim-jre

frakman1 opened this issue · comments

commented

Sorry if is not the right place for this issue or not, but my attempt to use docker buildx option to build for a RaspberryPi using the linux/arm/v7 architecture resulted in an error that brought me to this project via the dockerhub page. Dockerfile

$ docker buildx build -t tsunami-pi . --platform linux/arm/v7,linux/arm64/v8,linux/amd64
WARN[0000] No output specified for docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load
[+] Building 16.8s (9/9) FINISHED
 => [internal] booting buildkit                                                                                                                                                       12.6s
 => => pulling image moby/buildkit:buildx-stable-1                                                                                                                                    11.7s
 => => creating container buildx_buildkit_multarchbuilder0                                                                                                                             0.9s
 => [internal] load build definition from Dockerfile                                                                                                                                   0.1s
 => => transferring dockerfile: 1.35kB                                                                                                                                                 0.0s
 => [internal] load .dockerignore                                                                                                                                                      0.1s
 => => transferring context: 245B                                                                                                                                                      0.0s
 => CANCELED [linux/amd64 internal] load metadata for docker.io/adoptopenjdk/openjdk13:debianslim-jre                                                                                  3.9s
 => CANCELED [linux/amd64 internal] load metadata for docker.io/adoptopenjdk/openjdk13:debianslim                                                                                      3.9s
 => ERROR [linux/arm/v7 internal] load metadata for docker.io/adoptopenjdk/openjdk13:debianslim-jre                                                                                    3.8s
 => CANCELED [linux/arm/v7 internal] load metadata for docker.io/adoptopenjdk/openjdk13:debianslim                                                                                     3.9s
 => CANCELED [linux/arm64 internal] load metadata for docker.io/adoptopenjdk/openjdk13:debianslim-jre                                                                                  3.9s
 => CANCELED [linux/arm64 internal] load metadata for docker.io/adoptopenjdk/openjdk13:debianslim                                                                                      3.9s
------
 > [linux/arm/v7 internal] load metadata for docker.io/adoptopenjdk/openjdk13:debianslim-jre:
------
failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: no match for platform in manifest sha256:a193ed5ea489b5ac33777010d7f12009ef9c0e0fc172181ab0365f07d4086137: not found

Please try with 15. 13 is EOL at AdoptOpenJDK.

commented

Are you saying to use version 15 for debianslim-jre and version 13 for debianslim? Because if I try changing debianslim to 15, I get the error:

Sending build context to Docker daemon  823.3kB
Step 1/16 : FROM adoptopenjdk/openjdk15:debianslim
debianslim: Pulling from adoptopenjdk/openjdk15
no matching manifest for linux/arm/v7 in the manifest list entries

13 is generally end of life at AdoptOpenJDK, so we do not update the images anymore. 15 is the current version but there are indeed no ARM images for it. I don't think that's right. For the moment, only the official images have it: https://hub.docker.com/_/adoptopenjdk.

commented

Is there a openjdk15 that I can use for the Pi/arm? If so, can you point me to a tag I can use please?
What is the difference between debianslim, debian-slim and debianslim-slim? I see armv7l versions of them for the same version (15.0.2_7):
image
image
image

I tried one of them but got a manifest error:

Step 1/16 : FROM adoptopenjdk/openjdk15:armv7l-debian-jdk-15.0.2_7-slim
manifest for adoptopenjdk/openjdk15:armv7l-debian-jdk-15.0.2_7-slim not found: manifest unknown: manifest unknown

adoptopenjdk:15-jdk-hotspot has an ARMv7 entry, so has adoptopenjdk:15-jre-hotspot.

Regarding the slims: debianslim should be the slim Debian image, slim is "slim" JDK (some parts were removed that not everybody uses). debianslim-slim would then be the slim Debian with the slim JDK.