openjdk10
Docker Images for OpenJDK Version 10 binaries built by AdoptOpenJDK.
100K+
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
latest, jdk-10.0.2.13, x86_64-ubuntu-jdk-10.0.2.13, s390x-ubuntu-jdk-10.0.2.13, ppc64le-ubuntu-jdk-10.0.2.13 (10/jdk/ubuntu/Dockerfile.hotspot.releases.full)slim, jdk-10.0.2.13-slim, x86_64-ubuntu-jdk-10.0.2.13-slim, s390x-ubuntu-jdk-10.0.2.13-slim, ppc64le-ubuntu-jdk-10.0.2.13-slim (10/jdk/ubuntu/Dockerfile.hotspot.releases.slim)alpine, jdk-10.0.2.13-alpine, x86_64-alpine-jdk-10.0.2.13 (10/jdk/alpine/Dockerfile.hotspot.releases.full)alpine-slim, jdk-10.0.2.13-alpine-slim, x86_64-alpine-jdk-10.0.2.13-slim (10/jdk/alpine/Dockerfile.hotspot.releases.slim)Nightly Builds
nightly, jdk10u-nightly, x86_64-ubuntu-jdk10u-nightly, s390x-ubuntu-jdk10u-nightly, ppc64le-ubuntu-jdk10u-nightly (10/jdk/ubuntu/Dockerfile.hotspot.nightly.full)nightly-slim, jdk10u-nightly-slim, x86_64-ubuntu-jdk10u-nightly-slim, s390x-ubuntu-jdk10u-nightly-slim, ppc64le-ubuntu-jdk10u-nightly-slim (10/jdk/ubuntu/Dockerfile.hotspot.nightly.slim)alpine-nightly, jdk10u-alpine-nightly, x86_64-alpine-jdk10u-nightly (10/jdk/alpine/Dockerfile.hotspot.nightly.full)alpine-nightly-slim, jdk10u-alpine-nightly-slim, x86_64-alpine-jdk10u-nightly-slim (10/jdk/alpine/Dockerfile.hotspot.nightly.slim)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 10 OpenJDK image, use the following commands:
FROM adoptopenjdk/openjdk10: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/openjdk10:jdk-10.0.2.13-alpine java -version
Picked up JAVA_TOOL_OPTIONS: -XX:+UseContainerSupport
openjdk version "10.0.2-adoptopenjdk" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2-adoptopenjdk+13)
OpenJDK 64-Bit Server VM (build 10.0.2-adoptopenjdk+13, 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.
Content type
Image
Digest
Size
119.2 MB
Last updated
over 7 years ago
docker pull adoptopenjdk/openjdk10:x86_64-alpine-jdk-10.0.2.13-slim