Last changed
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 (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:
Apache-2.0
BSD-3-Clause
Bitstream-Vera
FTL
GCC-exception-3.1
GPL-2.0-only
GPL-2.0-or-later
For a complete list of licenses, please refer to this Image's SBOM.
Software license agreement