Public Repository

Last pushed: 11 hours ago
Short Description
Docker Images for OpenJDK Version 8 binaries built by AdoptOpenJDK.
Full Description

Supported tags and respective Dockerfile links



Quick reference


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.

Are the builds TCK Certified ?

This page has more information on which images are TCK certified.

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 8 OpenJDK image, use the following commands:

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

To do the same with the Java 9 OpenJDK image, use the following commands:

FROM adoptopenjdk/openjdk9:latest
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/openjdk8:x86_64-ubuntu-jdk8u172-b00-nightly java -version
openjdk version "1.8.0-adoptopenjdk"
OpenJDK Runtime Environment (build 1.8.0-adoptopenjdk-jenkins_2018_03_08_17_02-b00)
OpenJDK 64-Bit Server VM (build 25.71-b00, mixed mode)


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.

Docker Pull Command