⚠️ Deprecated: This is not maintained any more, and references Oracle JDK, which no longer allows free usage and redistribution.Alternatives exist, such as Eclipe Adoptium Temurin (Formerly AdoptOpenJDK)
Basic Docker image to run Java applications. This is based on Alpine Linux to keep the size minimal (about 25% of an ubuntu-based image).
latest
or8
orserverjre-8
: Oracle Java 8 (Server JRE)jdk-8
: Oracle Java 8 (JDK)jre-8
: Oracle Java 8 (JRE)
Additionally, tags are created for each oracle release (e.g. 8u191
, jdk-8u191
or jre-8u191
).
Note: Sometimes Oracle releases two versions at the same time : a CPU (Critical Patch Update) with only critical bug
fixes, and a PSU (Patch Set Update) with additional "non-critical fixes". In this case, the CPU will be the default,
as recommended by oracle.
If needed, PSU releases are still accessible, by using their specific release tag (e.g jdk-8u192
)
Example:
docker run -it --rm jeanblanchard/java:8 java -version