docker pull cgr.dev/chainguard/jdk
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 JDK image using using OpenJDK. Used for compiling Java applications.
The image is available on cgr.dev
:
The latest builds of Chainguard's JDK 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.
This section outlines how you can build a Java application with the Chainguard JDK 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
LGPL-2.1-or-later
MIT
X11
Zlib
Apache-2.0
BSD-3-Clause
For a complete list of licenses, please refer to this Image's SBOM.
Software license agreementProducts
Chainguard Images© 2024 Chainguard, Inc.