专属域名
文档搜索
轩辕助手
Run助手
邀请有礼
返回顶部
快速返回页面顶部
收起
收起工具栏

amd64/openjdk Docker 镜像 - 轩辕镜像

openjdk
amd64/openjdk
OpenJDK的预发布/非生产版本是Java平台开源实现的早期构建版本,主要供开发者进行功能验证、兼容性测试和新特性预览,不适合部署在生产环境中;这类版本通常包含最新开发阶段的功能更新,但可能存在稳定性或兼容性问题,需经过进一步测试与优化后才能作为正式生产版本发布,为Java生态系统的持续迭代和技术创新提供前期验证支持。
18 收藏0 次下载activeamd64镜像
🚀专业版镜像服务,面向生产环境设计
版本下载
🚀专业版镜像服务,面向生产环境设计

Note: this is the "per-architecture" repository for the amd64 builds of the openjdk official image -- for more information, see "Architectures other than amd64?" in the official images documentation and "An image's source changed in Git, now what?" in the official images FAQ.

DEPRECATION NOTICE

This image is officially deprecated and all users are recommended to find and use suitable replacements ASAP. Some examples of other Official Image alternatives (listed in alphabetical order with no intentional or implied preference):

  • amazoncorretto
  • eclipse-temurin
  • ibm-semeru-runtimes
  • ibmjava
  • sapmachine

See docker-library/openjdk#505 for more information.

The only tags which will continue to receive updates beyond July 2022 will be Early Access builds (which are sourced from jdk.java.net), as those are not published/supported by any of the above projects.

Quick reference

  • Maintained by:
    the Docker Community

  • Where to get help:
    the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow

Supported tags and respective Dockerfile links

(See "What's the difference between 'Shared' and 'Simple' tags?" in the FAQ.)

Simple Tags

  • 26-ea-29-jdk-oraclelinux9, 26-ea-29-oraclelinux9, 26-ea-jdk-oraclelinux9, 26-ea-oraclelinux9, 26-ea-29-jdk-oracle, 26-ea-29-oracle, 26-ea-jdk-oracle, 26-ea-oracle

  • 26-ea-29-jdk-oraclelinux8, 26-ea-29-oraclelinux8, 26-ea-jdk-oraclelinux8, 26-ea-oraclelinux8

  • 26-ea-29-jdk-trixie, 26-ea-29-trixie, 26-ea-jdk-trixie, 26-ea-trixie

  • 26-ea-29-jdk-slim-trixie, 26-ea-29-slim-trixie, 26-ea-jdk-slim-trixie, 26-ea-slim-trixie, 26-ea-29-jdk-slim, 26-ea-29-slim, 26-ea-jdk-slim, 26-ea-slim

  • 26-ea-29-jdk-bookworm, 26-ea-29-bookworm, 26-ea-jdk-bookworm, 26-ea-bookworm

  • 26-ea-29-jdk-slim-bookworm, 26-ea-29-slim-bookworm, 26-ea-jdk-slim-bookworm, 26-ea-slim-bookworm

  • 27-ea-3-jdk-oraclelinux9, 27-ea-3-oraclelinux9, 27-ea-jdk-oraclelinux9, 27-ea-oraclelinux9, 27-ea-3-jdk-oracle, 27-ea-3-oracle, 27-ea-jdk-oracle, 27-ea-oracle

  • 27-ea-3-jdk-oraclelinux8, 27-ea-3-oraclelinux8, 27-ea-jdk-oraclelinux8, 27-ea-oraclelinux8

  • 27-ea-3-jdk-trixie, 27-ea-3-trixie, 27-ea-jdk-trixie, 27-ea-trixie

  • 27-ea-3-jdk-slim-trixie, 27-ea-3-slim-trixie, 27-ea-jdk-slim-trixie, 27-ea-slim-trixie, 27-ea-3-jdk-slim, 27-ea-3-slim, 27-ea-jdk-slim, 27-ea-slim

  • 27-ea-3-jdk-bookworm, 27-ea-3-bookworm, 27-ea-jdk-bookworm, 27-ea-bookworm

  • 27-ea-3-jdk-slim-bookworm, 27-ea-3-slim-bookworm, 27-ea-jdk-slim-bookworm, 27-ea-slim-bookworm

Shared Tags

  • 26-ea-29-jdk, 26-ea-29, 26-ea-jdk, 26-ea:

    • 26-ea-29-jdk-oraclelinux9
  • 27-ea-3-jdk, 27-ea-3, 27-ea-jdk, 27-ea:

    • 27-ea-3-jdk-oraclelinux9

Quick reference (cont.)

  • Where to file issues:
    [***]

  • Supported architectures: (more info)
    amd64, arm64v8, windows-amd64

  • Published image artifact details:
    repo-info repo's repos/openjdk/ directory (history)
    (image metadata, transfer size, etc)

  • Image updates:
    official-images repo's library/openjdk label
    official-images repo's library/openjdk file (history)

  • Source of this description:
    docs repo's openjdk/ directory (history)

What is OpenJDK?

OpenJDK (Open Java Development Kit) is a free and open source implementation of the Java Platform, Standard Edition (Java SE). OpenJDK is the official reference implementation of Java SE since version 7.

***.org/wiki/OpenJDK

Java is a registered trademark of Oracle and/or its affiliates.

!logo

How to use this image

Start a Java instance in your app

The most straightforward way to use this image is to use a Java container as both the build and runtime environment. In your Dockerfile, writing something along the lines of the following will compile and run your project:

dockerfile
FROM amd64/openjdk:11
COPY . /usr/src/myapp
WORKDIR /usr/src/myapp
RUN javac Main.java
CMD ["java", "Main"]

You can then run and build the Docker image:

console
$ docker build -t my-java-app .
$ docker run -it --rm --name my-running-app my-java-app

Compile your app inside the Docker container

There may be occasions where it is not appropriate to run your app inside a container. To compile, but not run your app inside the Docker instance, you can write something like:

console
$ docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp amd64/openjdk:11 javac Main.java

This will add your current directory as a volume to the container, set the working directory to the volume, and run the command javac Main.java which will tell Java to compile the code in Main.java and output the Java class file to Main.class.

Make JVM respect CPU and RAM limits

On startup the JVM tries to detect the number of available CPU cores and RAM to adjust its internal parameters (like the number of garbage collector threads to spawn) accordingly. When the container is ran with limited CPU/RAM then the standard system API used by the JVM for probing it will return host-wide values. This can cause excessive CPU usage and memory allocation errors with older versions of the JVM.

Inside Linux containers, OpenJDK versions 8 and later can correctly detect the container-limited number of CPU cores and available RAM. For all currently supported OpenJDK versions this is turned on by default.

Inside Windows Server (non-Hyper-V) containers, the limit for the number of available CPU cores doesn't work (it's ignored by Host Compute Service). To set the limit manually the JVM can be started as:

console
$ start /b /wait /affinity 0x3 path/to/java.exe ...

In this example CPU affinity hex mask 0x3 will limit the JVM to 2 CPU cores.

RAM limit is supported by Windows Server containers, but currently the JVM cannot detect it. To prevent excessive memory allocations, -XX:MaxRAM=... option must be specified with the value that is not bigger than the containers RAM limit.

Environment variables with periods in their names

Some shells (notably, the BusyBox /bin/sh included in Alpine Linux) do not support environment variables with periods in the names (which are technically not POSIX compliant), and thus strip them instead of passing them through (as Bash does). If your application requires environment variables of this form, either use CMD ["java", ...] directly (no shell), or (install and) use Bash explicitly instead of /bin/sh.

Image Variants

The amd64/openjdk images come in many flavors, each designed for a specific use case.

amd64/openjdk:<version>

This is the defacto image. If you are unsure about what your needs are, you probably want to use this one. It is designed to be used both as a throw away container (mount your source code and start the container to start your app), as well as the base to build other images off of.

Some of these tags may have names like bookworm or trixie in them. These are the suite code names for releases of Debian and indicate which release the image is based on. If your image needs to install any additional packages beyond what comes with the image, you'll likely want to specify one of these explicitly to minimize breakage when there are new releases of Debian.

amd64/openjdk:<version> (from 12 onwards), amd64/openjdk:<version>-oracle and amd64/openjdk:<version>-oraclelinux8

Starting with openjdk:12 the default image as well as the -oracle and -oraclelinux8 variants are based on the official Oracle Linux 8 image which is provided under the GPLv2 as per the Oracle Linux End User Agreement (EULA).

The -oraclelinux7 variants are based on the official Oracle Linux 7 image which is provided under the GPLv2 as per the Oracle Linux End User Agreement (EULA).

The OpenJDK binaries are built by Oracle and are sourced from the OpenJDK community. These binaries are licensed under the GPLv2 with the Classpath Exception.

License

View license information for the software contained in this image.

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 the repo-info repository's openjdk/ directory.

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.

查看更多 openjdk 相关镜像 →
openjdk logo
openjdk
by library
官方
OpenJDK的预发布/非生产环境构建版本,通常包含最新开发的功能、性能优化及安全修复,主要供开发者和测试人员在非生产环境中进行早期验证、兼容性测试与功能评估,旨在帮助发现潜在问题并反馈改进,为后续正式版本的发布奠定基础,但因未经过充分的稳定性验证,不建议用于生产系统,以避免可能的运行风险。
41051B+ pulls
上次更新:12 天前
cimg/openjdk logo
cimg/openjdk
by CircleCI
认证
CircleCI OpenJDK(Java)Docker便捷镜像是由CircleCI平台提供的、基于OpenJDK(Java开发工具包)构建的Docker预配置镜像,旨在简化Java项目的持续集成与部署流程,内置必要的开发环境和工具,帮助开发者快速搭建稳定的构建环境,无需手动配置底层依赖,有效提升开发与自动化构建效率,适用于各类Java应用的自动化测试、构建及部署场景。
850M+ pulls
上次更新:2 个月前
jenkins/openjdk logo
jenkins/openjdk
by Jenkins
这些Docker镜像是基于多种AdoptOpenJDK二进制文件构建的,旨在为Java应用提供便捷、高效的容器化部署方案,支持不同Java版本与平台,确保应用在各类环境中稳定运行,满足开发者对开源Java运行时的多样化需求,具备轻量级、可移植性强等特点,便于快速集成到开发与生产流程中。
18.1K pulls
上次更新:4 年前
arm64v8/openjdk logo
arm64v8/openjdk
by arm64v8
OpenJDK的预发布/非生产版本是指尚未正式发布、不建议用于生产环境的构建版本,主要供开发者进行早期测试、体验新特性、验证兼容性或参与开源项目的开发调试,这类版本通常包含最新的功能迭代但可能存在稳定性或性能方面的潜在问题。
751M+ pulls
上次更新:12 天前
winamd64/openjdk logo
winamd64/openjdk
by winamd64
OpenJDK的预发布/非生产环境构建版本
901M+ pulls
上次更新:18 天前
arm32v7/openjdk logo
arm32v7/openjdk
by arm32v7
OpenJDK的预发布/非生产环境构建版本
18100K+ pulls
上次更新:6 年前

轩辕镜像配置手册

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式

登录仓库拉取

通过 Docker 登录认证访问私有仓库

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

Docker Compose

Docker Compose 项目配置

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

宝塔面板

在宝塔面板一键配置镜像

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

极空间

极空间 NAS 系统配置服务

爱快路由

爱快 iKuai 路由系统配置

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

专属域名拉取

无需登录使用专属域名

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

轩辕镜像免费版与专业版有什么区别?

免费版仅支持 Docker Hub 访问,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。

轩辕镜像支持哪些镜像仓库?

专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等;免费版仅支持 docker.io。

流量耗尽错误提示

当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。

410 错误问题

通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。

manifest unknown 错误

先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。

镜像拉取成功后,如何去掉轩辕镜像域名前缀?

使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

oldzhang的头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
amd64/openjdk
官方博客Docker 镜像使用技巧与技术博客
热门镜像查看热门 Docker 镜像推荐
一键安装一键安装 Docker 并配置镜像源
提交工单
免费获取在线技术支持请 提交工单,官方QQ群:13763429 。
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
免费获取在线技术支持请提交工单,官方QQ群: 。
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
官方邮箱:点击复制邮箱
©2024-2026 源码跳动
官方邮箱:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.
轩辕镜像 官方专业版 Logo
轩辕镜像轩辕镜像官方专业版
首页个人中心搜索镜像
交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题
其他
关于我们网站地图

官方QQ群: 13763429