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. 8u161
, jdk-8u161
or jre-8u161
).
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-8u162
)
Example:
docker run -it --rm zpaulo/java:8 java -version