Eclipse Temurin构建的OpenJDK二进制文件的官方Docker镜像,提供riscv64架构支持,适用于Java应用的容器化部署。
Note: this is the "per-architecture" repository for the riscv64 builds of https://hub.docker.com/_/eclipse-temurin -- for more information, see https://github.com/docker-library/official-images#architectures-other-than-amd64 and https://github.com/docker-library/faq#an-images-source-changed-in-git-now-what.
Quick reference
-
Maintained by:
https://github.com/adoptium/containers -
Where to get help:
Adoptium Slack; https://github.com/adoptium/adoptium-support/issues/new/choose
Supported tags and respective Dockerfile links
(See https://github.com/docker-library/faq#whats-the-difference-between-shared-and-simple-tags.)
Simple Tags
-
https://github.com/adoptium/containers/blob/511f9356dc4d50932a0a5f8cfb0f87ed1aef4f07/17/jdk/ubuntu/noble/Dockerfile
-
https://github.com/adoptium/containers/blob/511f9356dc4d50932a0a5f8cfb0f87ed1aef4f07/17/jre/ubuntu/noble/Dockerfile
-
https://github.com/adoptium/containers/blob/511f9356dc4d50932a0a5f8cfb0f87ed1aef4f07/21/jdk/ubuntu/noble/Dockerfile
-
https://github.com/adoptium/containers/blob/511f9356dc4d50932a0a5f8cfb0f87ed1aef4f07/21/jre/ubuntu/noble/Dockerfile
-
https://github.com/adoptium/containers/blob/511f9356dc4d50932a0a5f8cfb0f87ed1aef4f07/25/jdk/ubuntu/noble/Dockerfile
-
https://github.com/adoptium/containers/blob/511f9356dc4d50932a0a5f8cfb0f87ed1aef4f07/25/jre/ubuntu/noble/Dockerfile
-
https://github.com/adoptium/containers/blob/511f9356dc4d50932a0a5f8cfb0f87ed1aef4f07/26/jdk/ubuntu/noble/Dockerfile
-
https://github.com/adoptium/containers/blob/511f9356dc4d50932a0a5f8cfb0f87ed1aef4f07/26/jre/ubuntu/noble/Dockerfile
Shared Tags
Quick reference (cont.)
-
Where to file issues:
https://github.com/adoptium/containers/issues; The adoptium support page has more information on quality, roadmap and support levels for Eclipse Temurin builds. Vulnerabilities not related to Eclipse Temurin itself should be be raised to their respective projects (e.g Ubuntu vulnerabilities need to be raised directly to the Ubuntu project). -
Supported architectures: (https://github.com/docker-library/official-images#architectures-other-than-amd64)
https://hub.docker.com/r/amd64/eclipse-temurin/, https://hub.docker.com/r/arm32v7/eclipse-temurin/, https://hub.docker.com/r/arm64v8/eclipse-temurin/, https://hub.docker.com/r/ppc64le/eclipse-temurin/, https://hub.docker.com/r/riscv64/eclipse-temurin/, https://hub.docker.com/r/s390x/eclipse-temurin/, https://hub.docker.com/r/winamd64/eclipse-temurin/ -
Published image artifact details:
https://github.com/docker-library/repo-info/blob/master/repos/eclipse-temurin (https://github.com/docker-library/repo-info/commits/master/repos/eclipse-temurin)
(image metadata, transfer size, etc) -
Image updates:
https://github.com/docker-library/official-images/issues?q=label%3Alibrary%2Feclipse-temurin
https://github.com/docker-library/official-images/blob/master/library/eclipse-temurin (https://github.com/docker-library/official-images/commits/master/library/eclipse-temurin) -
Source of this description:
https://github.com/docker-library/docs/tree/master/eclipse-temurin (https://github.com/docker-library/docs/commits/master/eclipse-temurin)
Overview
The images in this repository contain OpenJDK binaries that are built by Eclipse Temurin.
What is Eclipse Temurin ?
The Eclipse Temurin project provides code and processes that support the building of runtime binaries and associated technologies that are high performance, enterprise-caliber, cross-platform, open-source licensed, and Java SE TCK-tested for general use across the Java ecosystem.
Do you provide JRE (Java Runtime Environment) Images?
JRE images are available for all versions of Eclipse Temurin but it is recommended that you produce a custom JRE-like runtime using jlink (see usage below).
Can I add my internal CA certificates to the truststore?
Yes, it's possible for all image flavors except for Windows-based images. The format of the certificates depends on what the OS of the base image used expects, but PEM format with a .crt file extension is a good bet.
You need to put your CA certificates into /certificates directory inside the container (e.g. by using a volume) and opt-in into CA certificate processing by setting the environment variable USE_SYSTEM_CA_CERTS on the container to any value (if you are overriding the entrypoint script, please make sure you call /__cacert_entrypoint.sh to enable the processing). Using Docker CLI this might look like this:
console$ docker run -v $(pwd)/certs:/certificates/ -e USE_SYSTEM_CA_CERTS=1 riscv64/eclipse-temurin:25
When run like this, your certificates will get added to both the JVM truststore and to the system CA store (e.g. for use by curl and other CLI tools). However, if you are running your containers in a restricted-by-default environment (such as Red Hat OpenShift), there will be some small differences:
-
Your containers are run with a non-
rootUID: Since neither the default JVM truststore nor the system CA store can be written to by a non-rootuser, the system CA store will not be updated, while a separate truststore will be provided to the JVM. Your certificates will get added to that truststore and theJAVA_TOOL_OPTIONSenvironment variable will be automatically extended to switch the JVM over to this new truststore. If you are overriding the default entrypoint script of this image, you'll need let the JVM know about the new truststore manually. The path to the new truststore will be exported viaJRE_CACERTS_PATHenvironment variable. -
Your containers are run with a read-only filesystem: The same restrictions apply as with running containers with a non-
rootUID. In addition, a writable volume is required at/tmpto be able to create the new truststore.
While this feature has been tested in multiple scenarios, there is always a chance of an unexpected edge case. Should you encounter one of these, please open an https://github.com/adoptium/containers/issues.
How to use this Image
To run a pre-built jar file with the latest OpenJDK 25, use the following Dockerfile:
dockerfileFROM riscv64/eclipse-temurin:25 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:
consoledocker build -t japp . docker run -it --rm japp
Using a different base Image
If you are using a distribution that we don't provide an image for you can copy the JDK using a similar Dockerfile to the one below:
dockerfile# Example FROM <base image> ENV JAVA_HOME=/opt/java/openjdk COPY --from=riscv64/eclipse-temurin:25 $JAVA_HOME $JAVA_HOME ENV PATH="${JAVA_HOME}/bin:${PATH}"
Creating a JRE using jlink
On OpenJDK 21+, a JRE can be generated using jlink, see the following Dockerfile:
dockerfile# Example of custom Java runtime using jlink in a multi-stage container build FROM riscv64/eclipse-temurin:25 as jre-build # Create a custom Java runtime RUN $JAVA_HOME/bin/jlink \ --add-modules java.base \ --strip-debug \ --no-man-pages \ --no-header-files \ --compress=2 \ --output /javaruntime # Define your base image FROM debian:buster-slim ENV JAVA_HOME=/opt/java/openjdk ENV PATH "${JAVA_HOME}/bin:${PATH}" COPY --from=jre-build /javaruntime $JAVA_HOME # Continue with your application deployment RUN mkdir /opt/app COPY japp.jar /opt/app CMD ["java", "-jar", "/opt/app/japp.jar"]
If you want to place the jar file on the host file system instead of inside the container, you can mount the host path onto the container by using the following commands:
dockerfileFROM riscv64/eclipse-temurin:25 CMD ["java", "-jar", "/opt/app/japp.jar"]
consoledocker build -t japp . docker run -it -v /path/on/host/system/jars:/opt/app 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:
- OpenJDK: The project license is GNU GPL v2 with Classpath Exception.
As with all Docker images, these likely also contain other software which may 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).
Some additional license information which was able to be auto-detected might be found in https://github.com/docker-library/repo-info/tree/master/repos/eclipse-temurin.
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.
riscv64 命名空间的其他可用镜像:
更多相关 Docker 镜像与资源
以下是 riscv64/eclipse-temurin 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
轩辕镜像加速拉取命令点我查看更多 eclipse-temurin 镜像标签
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务