adoptopenjdk/openjdk16

By adoptopenjdk

Updated 5 days ago

Docker Images for OpenJDK Version 16 binaries built by AdoptOpenJDK.

Image
Security
Languages & frameworks
Integration & delivery
18

5M+

adoptopenjdk/openjdk16 repository overview

Official vs Non-Official Docker images

AdoptOpenJDK provides docker images in two different DockerHub repos

  1. DockerHub maintained images (aka official DockerHub images) at this link.
  2. AdoptOpenJDK maintained images (this repo).

Both images use the same underlying Java binaries from AdoptOpenJDK, but they support different OS flavours as below. Also the official DockerHub images are updated for underlying OS updates as and when the OS fixes are available. The AdoptOpenJDK maintained images are rebuilt everyday.

  • See Official Docker Images for the regular jdk and jre images based on Ubuntu and Windows.
  • Use this repo for Alpine, CentOS, ClefOS, Debian, Debian-Slim, UBI and UBI-Minimal based images as well as Slim images for all supported OSes.

Release Builds

Nightly Builds

Quick reference

Overview

Java™ is the world's leading programming language and platform. The code for Java is open source and available at OpenJDK™. AdoptOpenJDK provides prebuilt OpenJDK binaries from a fully open source set of build scripts and infrastructure.

Java and all Java-based trademarks and logos are trademarks or registered trademarks of Oracle and/or its affiliates.

Multi-arch image

OpenJDK has multi-arch support so the same commands work on all supported architectures.

How to use this Image

To run a pre-built jar file with the latest Java 16 OpenJDK image, use the following commands:

FROM adoptopenjdk/openjdk16:ubi
RUN mkdir /opt/app
COPY japp.jar /opt/app
CMD ["java", "-jar", "/opt/app/japp.jar"]

You can build and run the Docker image as shown in the following example:

$ docker build -t japp .
$ docker run -it --rm japp

To get a specific version of a docker image, add the build number as shown in the following example:

$ docker run --rm -it adoptopenjdk/openjdk16:jre-16_36 java -version
openjdk version "16" 2021-03-16
OpenJDK Runtime Environment AdoptOpenJDK (build 16+36)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 16+36, mixed mode, sharing)

License

The Dockerfiles and associated scripts are licensed under the Apache License, Version 2.0.

Licenses for the products installed within the images:

As with all Docker images, other software is likely to be included, which might be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).

As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.

Tag summary

Content type

Image

Digest

sha256:3fb7a20b2

Size

89.8 MB

Last updated

5 days ago

docker pull adoptopenjdk/openjdk16:ppc64le-ubuntu-jre16u-2021-09-25-01-21-beta-nightly