docker.io/library/openjdk:8-jre linux/amd64

docker.io/library/openjdk:8-jre - 国内下载镜像源 浏览次数:45 安全受验证的发布者-Docker

这个docker镜像是基于openjdk的JVM实现,提供了Java Runtime Environment(JRE)的功能,可以运行Java应用程序。

镜像信息

  • 镜像名: docker.io/library/openjdk
  • 描述: OpenJDK JVM
源镜像 docker.io/library/openjdk:8-jre
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/openjdk:8-jre
镜像ID sha256:0c14a0e20aa3a19448f6227265c6642571112e9cd9a69b5e7a323df46d1aa835
镜像TAG 8-jre
大小 273.57MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD bash
启动入口
工作目录
OS/平台 linux/amd64
浏览量 45 次
贡献者 ya*********0@126.com
镜像创建 2022-08-02T05:55:44.157164591Z
同步时间 2024-12-25 20:34
更新时间 2025-01-18 05:02
环境变量
PATH=/usr/local/openjdk-8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin JAVA_HOME=/usr/local/openjdk-8 LANG=C.UTF-8 JAVA_VERSION=8u342
镜像安全扫描 查看Trivy扫描报告

系统OS: debian 11.4 扫描引擎: Trivy 扫描时间: 2024-12-25 20:36

低危漏洞:125 中危漏洞:104 高危漏洞:89 严重漏洞:25

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

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/openjdk:8-jre
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/openjdk:8-jre  docker.io/library/openjdk:8-jre

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/openjdk:8-jre
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/openjdk:8-jre  docker.io/library/openjdk:8-jre

Shell快速替换命令

sed -i 's#library/openjdk:8-jre#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/openjdk:8-jre#' deployment.yaml

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2022-08-02 13:55:44  108.13MB 
/bin/sh -c set -eux; 		arch="$(dpkg --print-architecture)"; 	case "$arch" in 		'amd64') 			downloadUrl='https://github.com/AdoptOpenJDK/openjdk8-upstream-binaries/releases/download/jdk8u342-b07/OpenJDK8U-jre_x64_linux_8u342b07.tar.gz'; 			;; 		'arm64') 			downloadUrl='https://github.com/AdoptOpenJDK/openjdk8-upstream-binaries/releases/download/jdk8u342-b07/OpenJDK8U-jre_aarch64_linux_8u342b07.tar.gz'; 			;; 		*) echo >&2 "error: unsupported architecture: '$arch'"; exit 1 ;; 	esac; 		wget --progress=dot:giga -O openjdk.tgz "$downloadUrl"; 	wget --progress=dot:giga -O openjdk.tgz.asc "$downloadUrl.sign"; 		export GNUPGHOME="$(mktemp -d)"; 	gpg --batch --keyserver keyserver.ubuntu.com --recv-keys EAC843EBD3EFDB98CC772FADA5CD6035332FA671; 	gpg --batch --keyserver keyserver.ubuntu.com --keyserver-options no-self-sigs-only --recv-keys CA5F11C6CE22644D42C6AC4492EF8D39DC13168F; 	gpg --batch --list-sigs --keyid-format 0xLONG CA5F11C6CE22644D42C6AC4492EF8D39DC13168F 		| tee /dev/stderr 		| grep '0xA5CD6035332FA671' 		| grep 'Andrew Haley'; 	gpg --batch --verify openjdk.tgz.asc openjdk.tgz; 	gpgconf --kill all; 	rm -rf "$GNUPGHOME"; 		mkdir -p "$JAVA_HOME"; 	tar --extract 		--file openjdk.tgz 		--directory "$JAVA_HOME" 		--strip-components 1 		--no-same-owner 	; 	rm openjdk.tgz*; 		{ 		echo '#!/usr/bin/env bash'; 		echo 'set -Eeuo pipefail'; 		echo 'trust extract --overwrite --format=java-cacerts --filter=ca-anchors --purpose=server-auth "$JAVA_HOME/lib/security/cacerts"'; 	} > /etc/ca-certificates/update.d/docker-openjdk; 	chmod +x /etc/ca-certificates/update.d/docker-openjdk; 	/etc/ca-certificates/update.d/docker-openjdk; 		find "$JAVA_HOME/lib" -name '*.so' -exec dirname '{}' ';' | sort -u > /etc/ld.so.conf.d/docker-openjdk.conf; 	ldconfig; 		java -version
                        
# 2022-08-02 13:55:38  0.00B 
/bin/sh -c #(nop)  ENV JAVA_VERSION=8u342
                        
# 2022-08-02 13:55:38  0.00B 
/bin/sh -c #(nop)  ENV LANG=C.UTF-8
                        
# 2022-08-02 13:55:37  0.00B 
/bin/sh -c #(nop)  ENV PATH=/usr/local/openjdk-8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2022-08-02 13:55:37  27.00B 
/bin/sh -c { echo '#/bin/sh'; echo 'echo "$JAVA_HOME"'; } > /usr/local/bin/docker-java-home && chmod +x /usr/local/bin/docker-java-home && [ "$JAVA_HOME" = "$(docker-java-home)" ] # backwards compatibility
                        
# 2022-08-02 13:55:37  0.00B 
/bin/sh -c #(nop)  ENV JAVA_HOME=/usr/local/openjdk-8
                        
# 2022-08-02 13:53:34  11.82MB 
/bin/sh -c set -eux; 	apt-get update; 	apt-get install -y --no-install-recommends 		bzip2 		unzip 		xz-utils 				fontconfig libfreetype6 				ca-certificates p11-kit 	; 	rm -rf /var/lib/apt/lists/*
                        
# 2022-08-02 09:47:01  18.95MB 
/bin/sh -c set -ex; 	if ! command -v gpg > /dev/null; then 		apt-get update; 		apt-get install -y --no-install-recommends 			gnupg 			dirmngr 		; 		rm -rf /var/lib/apt/lists/*; 	fi
                        
# 2022-08-02 09:46:56  10.69MB 
/bin/sh -c set -eux; 	apt-get update; 	apt-get install -y --no-install-recommends 		ca-certificates 		curl 		netbase 		wget 	; 	rm -rf /var/lib/apt/lists/*
                        
# 2022-08-02 09:19:54  0.00B 
/bin/sh -c #(nop)  CMD ["bash"]
                        
# 2022-08-02 09:19:54  123.98MB 
/bin/sh -c #(nop) ADD file:d0f758e50c654c225f6c7f03e8a579efc9106437051573bdbae5e63b1c4b2c1f in / 
                        
                    

镜像信息

{
    "Id": "sha256:0c14a0e20aa3a19448f6227265c6642571112e9cd9a69b5e7a323df46d1aa835",
    "RepoTags": [
        "openjdk:8-jre",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/openjdk:8-jre"
    ],
    "RepoDigests": [
        "openjdk@sha256:667a15e7bc533a90fb39ddb7e5bed63162ac3c13a97e6c698bf4f139f51b7d33",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/openjdk@sha256:a6a74c7b774e00fd2ec5664e257d344f1b7e69e2a618b1c0678f69719863c5ad"
    ],
    "Parent": "",
    "Comment": "",
    "Created": "2022-08-02T05:55:44.157164591Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "20.10.12",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/local/openjdk-8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "JAVA_HOME=/usr/local/openjdk-8",
            "LANG=C.UTF-8",
            "JAVA_VERSION=8u342"
        ],
        "Cmd": [
            "bash"
        ],
        "Image": "sha256:86002010a6b4b9db1c83f738d78465d03ebe1bacf4bf513d44ccae018b1db560",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 273569707,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/b5594d65197e5632831238295a0e93a2c980a182e685dcb241c2ff8f7f3c56a7/diff:/var/lib/docker/overlay2/4124991ff78a4cd5745cbec5fed7e7eed9f7ea727517488f50c1afaa013daa2b/diff:/var/lib/docker/overlay2/c11575c5c99c0140a68e7afdcc62ba008fe190ebfa4ec53818bc004c87f54cde/diff:/var/lib/docker/overlay2/2a93a1144bbb30531ae1e4a60a95c94efdf6376f31982dca8e7d02108c9c829f/diff:/var/lib/docker/overlay2/e90143b20f7d47fb3c957c60eaaf6a9063a084503aeac93fae51e74be8e2c426/diff",
            "MergedDir": "/var/lib/docker/overlay2/516e6501407db1fc0f62ae68aef9042ec3418f451c5c4b044b2e9abb06315466/merged",
            "UpperDir": "/var/lib/docker/overlay2/516e6501407db1fc0f62ae68aef9042ec3418f451c5c4b044b2e9abb06315466/diff",
            "WorkDir": "/var/lib/docker/overlay2/516e6501407db1fc0f62ae68aef9042ec3418f451c5c4b044b2e9abb06315466/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:9c742cd6c7a5752ee36be8ecb14be45c0885e10e6dd34f26a9ae3eb096c5d492",
            "sha256:03127cdb479b0f1eb8a9b0df8e8d72ead24979728d3c84ff645611b9d8790f94",
            "sha256:293d5db30c9fcf33b65fa033e427fdd118464f9ea0c2a343a478a6e89c29140e",
            "sha256:5c384ea5f75201f4bd074559d2abedc93f5effbed2007ae4801a0366dd0313f6",
            "sha256:990c5138f5d1291dabfbd402fbf895ba0d56a99184c9b28a4747ba2a5ee7536d",
            "sha256:1aaddf64804fde60fed1bd58e35f7afb7d1a8cc43ef07f7ef590be0362a66c79"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-12-25T20:34:52.601718367+08:00"
    }
}

更多版本

docker.io/library/openjdk:17

linux/amd64 docker.io471.47MB2024-09-03 08:49
191

docker.io/library/openjdk:8-alpine

linux/amd64 docker.io104.82MB2024-09-03 17:19
357

docker.io/library/openjdk:8-alpine

linux/arm64 docker.io103.03MB2024-09-20 09:47
166

docker.io/library/openjdk:17

linux/arm64 docker.io501.30MB2024-11-01 12:28
100

docker.io/library/openjdk:17-slim

linux/amd64 docker.io407.75MB2024-11-07 22:52
73

docker.io/library/openjdk:17-jdk-slim

linux/amd64 docker.io407.75MB2024-11-12 13:03
99

docker.io/library/openjdk:8-jre

linux/amd64 docker.io273.57MB2024-12-25 20:34
44

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

linux/amd64 docker.io407.75MB2025-01-13 16:28
22