openjdk16
Docker Images for OpenJDK Version 16 binaries built by AdoptOpenJDK.
5M+
AdoptOpenJDK provides docker images in two different DockerHub repos
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.
Dockerfile linksRelease Builds
Nightly Builds
Where to get help:
Community support; Join AdoptOpenJDK Slack
Where to report problems:
GitHub
Supported architectures: (more info)
aarch64, amd64, ppc64le, s390x
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.
OpenJDK has multi-arch support so the same commands work on all supported architectures.
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)
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.
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