docker pull cgr.dev/chainguard/jre
Need access to a specific version? Contact us.
Get notified of upcoming product changes, critical vulnerability notifications and patches and more.
Sign inMinimalist Wolfi-based Java JRE image using OpenJDK. Used for running Java applications.
The latest builds of Chainguard's JRE image passes the TCK for OpenJDK Java 21.0.3 and Java 22.0.1 as provided by (Oracle under the OpenJDK Community TCK License Agreement)[https://openjdk.org/groups/conformance/JckAccess/index.html] (OCTLA) and are Java Compatibility Kit (JCK) conformant.
The image is available on cgr.dev
:
This section outlines how you can build a Java application with the Chainguard JRE Image.
Start by creating a sample Java class named HelloWolfi.java
:
Then create a multistage Dockerfile, adding the Java class you just created:
Following that, you can build the image:
Note that this example tags the image with my-java-app
. You can now run the image by referencing this tag, as in the following command:
Chainguard Images contain software packages that are direct or transitive dependencies. The following licenses were found in the "latest" version of this image:
IJG
MIT
X11
Zlib
Apache-2.0
BSD-3-Clause
Bitstream-Vera
For a complete list of licenses, please refer to this Image's SBOM.
Software license agreementProducts
Chainguard Images© 2024 Chainguard, Inc.