AdoptOpenJDK构建的Eclipse OpenJ9 11版本二进制文件的Docker镜像,用于运行基于该JDK版本的应用。
Official vs Non-Official Docker images
AdoptOpenJDK provides docker images in two different DockerHub repos
- DockerHub maintained images (aka official DockerHub images) at this https://hub.docker.com/_/adoptopenjdk.
- 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.
Supported tags and respective Dockerfile links
Release Builds
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/alpine/Dockerfile.openj9.releases.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/alpine/Dockerfile.openj9.releases.slim
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jre/alpine/Dockerfile.openj9.releases.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/centos/Dockerfile.openj9.releases.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/centos/Dockerfile.openj9.releases.slim
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jre/centos/Dockerfile.openj9.releases.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/clefos/Dockerfile.openj9.releases.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/clefos/Dockerfile.openj9.releases.slim
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jre/clefos/Dockerfile.openj9.releases.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/debian/Dockerfile.openj9.releases.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/debian/Dockerfile.openj9.releases.slim
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jre/debian/Dockerfile.openj9.releases.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/debianslim/Dockerfile.openj9.releases.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/debianslim/Dockerfile.openj9.releases.slim
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jre/debianslim/Dockerfile.openj9.releases.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/leap/Dockerfile.openj9.releases.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jre/leap/Dockerfile.openj9.releases.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/tumbleweed/Dockerfile.openj9.releases.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jre/tumbleweed/Dockerfile.openj9.releases.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/ubi/Dockerfile.openj9.releases.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/ubi/Dockerfile.openj9.releases.slim
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jre/ubi/Dockerfile.openj9.releases.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/ubi-minimal/Dockerfile.openj9.releases.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jre/ubi-minimal/Dockerfile.openj9.releases.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/ubuntu/Dockerfile.openj9.releases.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/ubuntu/Dockerfile.openj9.releases.slim
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jre/ubuntu/Dockerfile.openj9.releases.full
Nightly Builds
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/alpine/Dockerfile.openj9.nightly.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/alpine/Dockerfile.openj9.nightly.slim
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jre/alpine/Dockerfile.openj9.nightly.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/centos/Dockerfile.openj9.nightly.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/centos/Dockerfile.openj9.nightly.slim
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jre/centos/Dockerfile.openj9.nightly.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/clefos/Dockerfile.openj9.nightly.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/clefos/Dockerfile.openj9.nightly.slim
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jre/clefos/Dockerfile.openj9.nightly.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/debian/Dockerfile.openj9.nightly.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/debian/Dockerfile.openj9.nightly.slim
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jre/debian/Dockerfile.openj9.nightly.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/debianslim/Dockerfile.openj9.nightly.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/debianslim/Dockerfile.openj9.nightly.slim
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jre/debianslim/Dockerfile.openj9.nightly.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/leap/Dockerfile.openj9.nightly.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jre/leap/Dockerfile.openj9.nightly.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/tumbleweed/Dockerfile.openj9.nightly.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jre/tumbleweed/Dockerfile.openj9.nightly.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/ubi/Dockerfile.openj9.nightly.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/ubi/Dockerfile.openj9.nightly.slim
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jre/ubi/Dockerfile.openj9.nightly.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/ubi-minimal/Dockerfile.openj9.nightly.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jre/ubi-minimal/Dockerfile.openj9.nightly.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/ubuntu/Dockerfile.openj9.nightly.full
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jdk/ubuntu/Dockerfile.openj9.nightly.slim
-
https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jre/ubuntu/Dockerfile.openj9.nightly.full
Quick reference
-
Where to get help:
https://www.eclipse.org/openj9/oj9_joinslack.html; https://dev.eclipse.org/mailman/listinfo/openj9-dev -
Where to report problems:
https://github.com/eclipse/openj9/issues -
Supported architectures: (https://github.com/docker-library/official-images#architectures-other-than-amd64)
amd64,ppc64le,s390x
Overview
The images in this repository contain OpenJDK binaries that are built with https://www.eclipse.org/openj9.
Eclipse OpenJ9 is a high performance, scalable, Java™ virtual machine (JVM) implementation that has a proven track record of running Java applications in production environments. Contributed to the Eclipse project by IBM, the OpenJ9 JVM underpins the IBM SDK, Java Technology Edition product that is a core component of many IBM Enterprise software products. Continued development of OpenJ9 at the Eclipse foundation ensures wider collaboration, fresh innovation, and the opportunity to influence the development of OpenJ9 for the next generation of Java applications.
OpenJDK binaries that include Eclipse OpenJ9 are available through AdoptOpenJDK.
Java and all Java-based trademarks and logos are trademarks or registered trademarks of Oracle and/or its affiliates.
Multi-arch image
OpenJ9 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 11 OpenJDK image, use the following commands:
dockerfileFROM adoptopenjdk/openjdk11-openj9: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:
console$ 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:
console$ docker run --rm -it adoptopenjdk/openjdk11-openj9:jre-11.0.9_11_openj9-0.23.0 java -version openjdk version "11.0.9" 2020-10-20 OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.9+11) Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.23.0, JRE 11 Linux amd64-64-Bit Compressed References 20201022_810 (JIT enabled, AOT enabled) OpenJ9 - 0394ef754 OMR - 582366ae5 JCL - 3b09cfd7e9 based on jdk-11.0.9+11)
Using the Class Data Sharing feature
Eclipse OpenJ9 provides a feature called http://www-01.ibm.com/support/knowledgecenter/SSYKE2_8.0.0/com.ibm.java.lnx.80.doc/diag/understanding/shared_classes.html. This mechanism offers transparent and dynamic sharing of data between multiple Java virtual machines (JVMs) running on the same host, which reduces the amount of physical memory consumed by each JVM instance. By providing partially verified classes and possibly pre-loaded classes in memory, this mechanism also improves the start up time of the JVM.
To enable class data sharing between JVMs that are running in different containers on the same host, a common location must be shared between containers. This requirement can be satisfied through the host or a data volume container. When enabled, class data sharing creates a named "class cache", which is a memory-mapped file, at the common location. This feature is enabled by passing the -Xshareclasses option to the JVM as shown in the following Dockerfile example:
dockerfileFROM adoptopenjdk/openjdk11-openj9:nightly RUN mkdir /opt/shareclasses RUN mkdir /opt/app COPY japp.jar /opt/app CMD ["java", "-Xshareclasses:cacheDir=/opt/shareclasses", "-jar", "/opt/app/japp.jar"]
The cacheDir sub-option specifies the location of the class cache. For example /opt/sharedclasses. When sharing through the host, a host path must be mounted onto the container at the location the JVM expects to find the class cache. For example:
consoledocker build -t japp . docker run -it -v /path/on/host/shareclasses/dir:/opt/shareclasses japp
When sharing through a data volume container, create a named data volume container that shares a volume. For example:
consoledocker create -v /opt/shareclasses --name classcache japp /bin/true
Then, start your JVM container by using the --volumes-from flag to mount the shared volume, as shown in the following example:
consoledocker run -it --volumes-from classcache japp
License
The Dockerfiles and associated scripts are licensed under the http://www.apache.org/licenses/LICENSE-2.0.html.
Licenses for the products installed within the images:
- Eclipse OpenJ9 + OpenJDK: The combined works license is http://openjdk.java.net/legal/gplv2+ce.html.
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.
adoptopenjdk 命名空间的其他可用镜像:
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
轩辕镜像加速拉取命令点我查看更多 openjdk11-openj9 镜像标签
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务