docker-library / openjdk

Docker Official Image packaging for EA builds of OpenJDK from Oracle
http://openjdk.java.net
MIT License
1.14k stars 471 forks source link

Latest tag points to JDK 17, rather than JDK 18 #500

Closed robilad closed 2 years ago

robilad commented 2 years ago

The issue has been discussed on Twitter here: https://twitter.com/gunnarmorling/status/1526291112478003202?s=20&t=zW8mMKEII467LHzjCvLgrQ

robilad commented 2 years ago

It can also be seen here:

https://hub.docker.com/layers/openjdk/library/openjdk/latest/images/sha256-98f0304b3a3b7c12ce641177a99d1f3be56f532473a528fda38d53d519cafb13?context=explore

wglambert commented 2 years ago

Yeah looks the the latest tag wasn't switched over from https://github.com/docker-library/openjdk/pull/495

$ docker pull openjdk
Using default tag: latest
latest: Pulling from library/openjdk
38a980f2cc8a: Pull complete
de849f1cfbe6: Pull complete
a7203ca35e75: Pull complete
Digest: sha256:528707081fdb9562eb819128a9f85ae7fe000e2fbaeaf9f87662e7b3f38cb7d8
Status: Downloaded newer image for openjdk:latest
docker.io/library/openjdk:latest

$ docker run --rm openjdk java -version
openjdk version "17.0.2" 2022-01-18
OpenJDK Runtime Environment (build 17.0.2+8-86)
OpenJDK 64-Bit Server VM (build 17.0.2+8-86, mixed mode, sharing)
tianon commented 2 years ago

Oops, thanks @robilad! Should be a trivial fix, will get a commit up ASAP.

tianon commented 2 years ago

I think we avoided this previously because latest was pointing at "latest LTS" but I agree it makes sense to go back to "latest release" (given #495).