Skip to content
This repository has been archived by the owner on Aug 21, 2021. It is now read-only.

Latest commit

 

History

History
27 lines (18 loc) · 2 KB

README.md

File metadata and controls

27 lines (18 loc) · 2 KB

Minimal Docker image with Java

⚠️ 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).

Tags

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)

Usage

Example:

docker run -it --rm jeanblanchard/java:8 java -version