docker.io/openjdk:21-jdk-oraclelinux7 linux/amd64

docker.io/openjdk:21-jdk-oraclelinux7 - 国内下载镜像源 浏览次数:84 安全受验证的发布者-OpenJdk

openjdk 是一个基于 Oracle JDK 的 Docker 镜像,用于在 Linux 和 Windows 平台上运行 Java 应用程序。它提供了完整的 Java Runtime Environment(JRE),包括 JVM、类库和工具。

源镜像 docker.io/openjdk:21-jdk-oraclelinux7
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openjdk:21-jdk-oraclelinux7
镜像ID sha256:1ccb5b97833fef2e9076f34ab89587687a31553177ecde189ed2c91be9d2b75c
镜像TAG 21-jdk-oraclelinux7
大小 529.44MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD jshell
启动入口
工作目录
OS/平台 linux/amd64
浏览量 84 次
贡献者
镜像创建 2023-08-12T00:04:27.3923781Z
同步时间 2024-12-01 14:09
更新时间 2025-01-18 11:36
环境变量
PATH=/usr/java/openjdk-21/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin JAVA_HOME=/usr/java/openjdk-21 LANG=en_US.UTF-8 JAVA_VERSION=21
镜像安全扫描 查看Trivy扫描报告

系统OS: oracle 7.9 扫描引擎: Trivy 扫描时间: 2024-12-01 14:11

低危漏洞:2 中危漏洞:4 高危漏洞:12 严重漏洞:0

Docker拉取命令 无权限下载?点我修复

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openjdk:21-jdk-oraclelinux7
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openjdk:21-jdk-oraclelinux7  docker.io/openjdk:21-jdk-oraclelinux7

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openjdk:21-jdk-oraclelinux7
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openjdk:21-jdk-oraclelinux7  docker.io/openjdk:21-jdk-oraclelinux7

Shell快速替换命令

sed -i 's#openjdk:21-jdk-oraclelinux7#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openjdk:21-jdk-oraclelinux7#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openjdk:21-jdk-oraclelinux7 && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openjdk:21-jdk-oraclelinux7  docker.io/openjdk:21-jdk-oraclelinux7'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openjdk:21-jdk-oraclelinux7 && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openjdk:21-jdk-oraclelinux7  docker.io/openjdk:21-jdk-oraclelinux7'

镜像构建历史


# 2023-08-12 08:04:27  0.00B 
/bin/sh -c #(nop)  CMD ["jshell"]
                        
# 2023-08-12 08:04:26  352.01MB 
/bin/sh -c set -eux; 		arch="$(objdump="$(command -v objdump)" && objdump --file-headers "$objdump" | awk -F '[:,]+[[:space:]]+' '$1 == "architecture" { print $2 }')"; 	case "$arch" in 		'i386:x86-64') 			downloadUrl='https://download.java.net/java/GA/jdk21/fd2272bbf8e04c3dbaee13770090416c/35/GPL/openjdk-21_linux-x64_bin.tar.gz'; 			downloadSha256='a30c454a9bef8f46d5f1bf3122830014a8fbe7ac03b5f8729bc3add4b92a1d0a'; 			;; 		'aarch64') 			downloadUrl='https://download.java.net/java/GA/jdk21/fd2272bbf8e04c3dbaee13770090416c/35/GPL/openjdk-21_linux-aarch64_bin.tar.gz'; 			downloadSha256='e8f4ed1a69815ddf56d7da365116eefc1e5a1159396dffee3dd21616a86d5d28'; 			;; 		*) echo >&2 "error: unsupported architecture: '$arch'"; exit 1 ;; 	esac; 		curl -fL -o openjdk.tgz "$downloadUrl"; 	echo "$downloadSha256 *openjdk.tgz" | sha256sum --strict --check -; 		mkdir -p "$JAVA_HOME"; 	tar --extract 		--file openjdk.tgz 		--directory "$JAVA_HOME" 		--strip-components 1 		--no-same-owner 	; 	rm openjdk.tgz*; 		rm -rf "$JAVA_HOME/lib/security/cacerts"; 	ln -sT /etc/pki/ca-trust/extracted/java/cacerts "$JAVA_HOME/lib/security/cacerts"; 		ln -sfT "$JAVA_HOME" /usr/java/default; 	ln -sfT "$JAVA_HOME" /usr/java/latest; 	for bin in "$JAVA_HOME/bin/"*; do 		base="$(basename "$bin")"; 		[ ! -e "/usr/bin/$base" ]; 		alternatives --install "/usr/bin/$base" "$base" "$bin" 20000; 	done; 		java -Xshare:dump; 		fileEncoding="$(echo 'System.out.println(System.getProperty("file.encoding"))' | jshell -s -)"; [ "$fileEncoding" = 'UTF-8' ]; rm -rf ~/.java; 	javac --version; 	java --version
                        
# 2023-08-12 08:04:16  0.00B 
/bin/sh -c #(nop)  ENV JAVA_VERSION=21
                        
# 2023-06-14 17:57:19  0.00B 
/bin/sh -c #(nop)  ENV LANG=en_US.UTF-8
                        
# 2023-06-14 17:57:19  0.00B 
/bin/sh -c #(nop)  ENV PATH=/usr/java/openjdk-21/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2023-06-14 17:57:19  0.00B 
/bin/sh -c #(nop)  ENV JAVA_HOME=/usr/java/openjdk-21
                        
# 2023-06-14 17:56:49  39.26MB 
/bin/sh -c set -eux; 	yum install -y --setopt=skip_missing_names_on_install=False 		gzip 		tar 				binutils 		freetype fontconfig 	; 	rm -rf /var/cache/yum
                        
# 2023-06-14 15:21:40  0.00B 
/bin/sh -c #(nop)  CMD ["/bin/bash"]
                        
# 2023-06-14 15:21:40  138.17MB 
/bin/sh -c #(nop) ADD file:733a37449d62d6e9f530185b9244e06cd8ff0ee896632576ae644437d0a1f852 in / 
                        
                    

镜像信息

{
    "Id": "sha256:1ccb5b97833fef2e9076f34ab89587687a31553177ecde189ed2c91be9d2b75c",
    "RepoTags": [
        "openjdk:21-jdk-oraclelinux7",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openjdk:21-jdk-oraclelinux7"
    ],
    "RepoDigests": [
        "openjdk@sha256:ab175488b7428dd1958ae9f889ece1f43ee584d03b0df5bb24618614d239d00e",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openjdk@sha256:671078207cd92b3638be12f52380c97974a9a6833001b4f2135453f43714d36f"
    ],
    "Parent": "",
    "Comment": "",
    "Created": "2023-08-12T00:04:27.3923781Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "20.10.23",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/java/openjdk-21/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "JAVA_HOME=/usr/java/openjdk-21",
            "LANG=en_US.UTF-8",
            "JAVA_VERSION=21"
        ],
        "Cmd": [
            "jshell"
        ],
        "Image": "sha256:0e78e633490910aa0b68c5672bd9570cef2e30541a622c2f8d137b20d11cdf9f",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 529435861,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/e0ce48b8da9da224fd0699873442e04154ae4f56efec3a3957ac270f7e2db8dd/diff:/var/lib/docker/overlay2/fa974b717d99c2d711cf985c519993c97e764dddf4ce6df676c15c772592fd60/diff",
            "MergedDir": "/var/lib/docker/overlay2/ba38f6262460be6e67220164b1aa5125c2590df7dc869c3551fd316a290dcea1/merged",
            "UpperDir": "/var/lib/docker/overlay2/ba38f6262460be6e67220164b1aa5125c2590df7dc869c3551fd316a290dcea1/diff",
            "WorkDir": "/var/lib/docker/overlay2/ba38f6262460be6e67220164b1aa5125c2590df7dc869c3551fd316a290dcea1/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:616461b0543d6905f05f2b384bc403d268886c8845a6de09629a2b022388c830",
            "sha256:948f13aa2492bc7550f1bbbc64ec84b39649dee827d457df84f3a64337fdfbde",
            "sha256:e7426f1c117e390acec0247058ca8942f151da877648f792534e8ec0dd707885"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-12-01T14:09:12.380314631+08:00"
    }
}

更多版本

docker.io/openjdk:16-buster

linux/amd64 docker.io649.69MB2024-03-11 14:22
470

docker.io/openjdk:16-jdk-buster

linux/amd64 docker.io649.69MB2024-03-11 14:23
486

docker.io/openjdk:16.0.2

linux/amd64 docker.io466.76MB2024-03-11 14:27
497

docker.io/openjdk:23-slim-bookworm

linux/amd64 docker.io444.61MB2024-06-11 18:22
438

docker.io/openjdk:11

linux/arm64 docker.io648.97MB2024-06-26 14:16
929

docker.io/openjdk:11

linux/amd64 docker.io654.17MB2024-06-26 14:16
1025

docker.io/openjdk:8-jdk-alpine3.9

linux/amd64 docker.io104.82MB2024-06-29 09:59
1996

docker.io/openjdk:8-jre

linux/amd64 docker.io273.57MB2024-07-03 15:46
3028

docker.io/openjdk:17

linux/amd64 docker.io471.47MB2024-07-03 21:43
3491

docker.io/openjdk:17-slim

linux/amd64 docker.io407.75MB2024-07-03 23:24
1368

docker.io/openjdk:8u212-jre-alpine3.9

linux/arm64 docker.io83.40MB2024-08-12 11:28
581

docker.io/openjdk:8-jdk

linux/amd64 docker.io526.05MB2024-08-13 13:46
1236

docker.io/openjdk:8u282-jre-buster

linux/amd64 docker.io267.78MB2024-08-16 10:23
528

docker.io/openjdk:11.0.16-jdk

linux/amd64 docker.io654.17MB2024-08-16 10:57
297

docker.io/openjdk:17-jdk-alpine

linux/amd64 docker.io325.60MB2024-08-17 10:41
1162

docker.io/openjdk:17.0.2-oraclelinux8

linux/amd64 docker.io471.47MB2024-08-22 14:22
360

docker.io/openjdk:18-bullseye

linux/amd64 docker.io667.10MB2024-08-29 15:34
266

docker.io/openjdk:8u212-jre-slim

linux/amd64 docker.io183.49MB2024-09-04 17:14
356

docker.io/openjdk:8-alpine

linux/arm64 docker.io103.03MB2024-09-20 09:46
378

docker.io/openjdk:17-jdk

linux/arm64 docker.io501.30MB2024-09-20 15:57
687

docker.io/openjdk:21

linux/amd64 docker.io504.20MB2024-10-06 17:28
838

docker.io/openjdk:8u342-jdk

linux/amd64 docker.io526.05MB2024-10-10 17:45
823

docker.io/openjdk:8u102-jdk

linux/amd64 docker.io641.03MB2024-10-29 01:42
145

docker.io/openjdk:8u342-jre-slim-buster

linux/arm64 docker.io180.00MB2024-11-04 14:44
154

docker.io/openjdk:8-jre-slim

linux/arm64 docker.io187.31MB2024-11-06 14:55
137

docker.io/openjdk:8u292

linux/amd64 docker.io513.97MB2024-11-07 14:14
99

docker.io/openjdk:8u342

linux/arm64 docker.io520.16MB2024-11-07 17:41
158

docker.io/openjdk:8-jdk-alpine

linux/arm64 docker.io103.03MB2024-11-11 12:32
176

docker.io/openjdk:8-jdk-alpine

linux/arm docker.io87.74MB2024-11-11 12:34
98

docker.io/openjdk:8-jdk-alpine

linux/ppc64le docker.io116.60MB2024-11-11 12:37
68

docker.io/openjdk:8-jdk-alpine

linux/s390x docker.io101.41MB2024-11-11 12:39
69

docker.io/openjdk:11-jre-slim

linux/amd64 docker.io223.27MB2024-11-22 11:25
113

docker.io/openjdk:8-jdk

linux/arm64 docker.io520.16MB2024-11-22 11:57
98

docker.io/openjdk:17.0.2-jdk-slim

linux/amd64 docker.io407.75MB2024-11-26 15:16
97

docker.io/openjdk:21-jdk-oraclelinux7

linux/amd64 docker.io529.44MB2024-12-01 14:09
83

docker.io/openjdk:18-ea-18-jdk-buster

linux/amd64 docker.io654.49MB2024-12-03 14:22
56

docker.io/openjdk:17-oracle

linux/amd64 docker.io471.47MB2024-12-06 15:02
63

docker.io/openjdk:8u342-jdk

linux/arm64 docker.io520.16MB2024-12-25 10:54
52

docker.io/openjdk:23-jdk-bookworm

linux/amd64 docker.io747.07MB2025-01-04 14:36
34

docker.io/openjdk:17.0.2-jdk

linux/amd64 docker.io471.47MB2025-01-13 09:52
24

docker.io/openjdk:17.0.2-jdk-slim-bullseye

linux/amd64 docker.io407.75MB2025-01-13 16:31
26

docker.io/openjdk:17-jdk

linux/amd64 docker.io471.47MB2025-01-15 17:19
24