Reputation: 353
We recently ran into an issue in that not all java images run on an ARM operating system for MAC (m1). Our last java version for our docker image is 13, and the image we are currently using is: openjdk:13-jdk-alpine.
Does anyone have any recommendations as to which image we should use? We already have a bunch of Linux servers already using our current image. We just want to enable the M1 machine without breaking everything else.
Upvotes: 4
Views: 7618
Reputation: 131
openjdk 17.0.1 works on amd64 and arm(m1) (openjdk:17.0.1) https://hub.docker.com/layers/openjdk/library/openjdk/17.0.1/images/sha256-8a99742c7c38a7b0826c8a47cacbca18af5c3a60e6eba18e75d6a8c28b9fa9b4?context=explore
I currently don't know any alpine linux based docker image that is also available for arm.
If you need to use alpine linux and are fine with jdk 16 you can just start FROM alpine:edge
and RUN apk --no-cache add openjdk16
Upvotes: 2