ubuntu/jdk

Verified Publisher

By Canonical

Updated 1 day ago

Ubuntu rock for OpenJDK

Image
Languages & frameworks
Developer tools
0

10K+

ubuntu/jdk repository overview

ubuntu/jdk is a rock for jdk maintained by Canonical.

OpenJDK is the official reference implementation of Java SE since version 7. Read more. This image packs the Java Development Kit, coming from the OpenJDK project, a free and open source implementation of the Java Platform, Standard Edition (Java SE).

Java is a registered trademark of Oracle and/or its affiliates.

[Learn more about jdk]

Tags and Architectures

NOTE: These tags follow a specific naming convention that respects the concept of channels.

TagsSupported untilVersionBaseArchitectures
25-26.04_stable
aliases25-26.04, 25-26.04_beta, 25-26.04_candidate, 25-26.04_edge
05/20312526.04amd64, arm64
21-24.04_stable
aliases21-24.04, 21-24.04_beta, 21-24.04_candidate, 21-24.04_edge
05/20292124.04arm64, amd64
17-24.04_stable
aliases17-24.04, 17-24.04_beta, 17-24.04_candidate, 17-24.04_edge
05/20291724.04amd64, arm64

Get started

This rock's entrypoint is Pebble, a container-optimized init process that enables the orchestration of a collection of local service processes as an organized set.

[Learn more about Pebble]

Inspect

To view the Pebble services and checks defined in this rock:

docker run --rm ubuntu/jdk:25-26.04_stable plan
Run

To run this rock, use any of the usual container runtimes, for example, docker:

docker run --name jdk-container \
    --rm -v /path/to/dir/contains/HelloWorld.java:/work -w /work \
    ubuntu/jdk:25-26.04_stable \
    exec java HelloWorld.java

JDK starts and runs the Hello World Java application as defined below, and outputs "Hello, World" to the terminal.

// HelloWorld.java
class HelloWorld
{
    public static void main(String args[])
    {
        System.out.println("Hello, World");
    }
}

Get logs

To view the logs of the running container, run:

docker exec jdk-container pebble logs

Or, for a specific service:

docker exec jdk-container pebble logs <service>
Monitor health checks

Rocks may have predefined health checks that you can list by running:

docker exec jdk-container pebble checks

The overall health of your container can be inspected via:

docker exec jdk-container pebble health

Configuration

Environment variables
OptionDescriptionDefault
TZTimezone.UTC
Application parameters
OptionDescriptionDefault
exec java [options] <args>Java runtime command.None

[Report a bug] [Contribute]

Canonical is the provider of this container image. It is the user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within, as well as with Canonical’s IP Policy.

Tag summary

Content type

Image

Digest

sha256:2a313070f

Size

186.5 MB

Last updated

1 day ago

docker pull ubuntu/jdk:25-26.04_stable

This week's pulls

Pulls:

820

Last week