docker.io/openjdk:17-slim linux/amd64

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

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

源镜像 docker.io/openjdk:17-slim
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openjdk:17-slim
镜像ID sha256:37cb44321d0423bc57266a3bff658daf00478e4cdf2d3b8091f785310534256d
镜像TAG 17-slim
大小 407.75MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD jshell
启动入口
工作目录
OS/平台 linux/amd64
浏览量 1177 次
贡献者 hu******p@163.com
镜像创建 2022-04-20T10:51:22.327613559Z
同步时间 2024-07-03 23:24
更新时间 2024-11-21 15:36
环境变量
PATH=/usr/local/openjdk-17/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin JAVA_HOME=/usr/local/openjdk-17 LANG=C.UTF-8 JAVA_VERSION=17.0.2

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

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openjdk:17-slim
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openjdk:17-slim  docker.io/openjdk:17-slim

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openjdk:17-slim
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openjdk:17-slim  docker.io/openjdk:17-slim

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像历史

大小 创建时间 层信息
0.00B 2022-04-20 18:51:22 /bin/sh -c #(nop) CMD ["jshell"]
322.46MB 2022-04-20 18:51:21 /bin/sh -c set -eux; arch="$(dpkg --print-architecture)"; case "$arch" in 'amd64') downloadUrl='https://download.java.net/java/GA/jdk17.0.2/dfd4a8d0985749f896bed50d7138ee7f/8/GPL/openjdk-17.0.2_linux-x64_bin.tar.gz'; downloadSha256='0022753d0cceecacdd3a795dd4cea2bd7ffdf9dc06e22ffd1be98411742fbb44'; ;; 'arm64') downloadUrl='https://download.java.net/java/GA/jdk17.0.2/dfd4a8d0985749f896bed50d7138ee7f/8/GPL/openjdk-17.0.2_linux-aarch64_bin.tar.gz'; downloadSha256='13bfd976acf8803f862e82c7113fb0e9311ca5458b1decaef8a09ffd91119fa4'; ;; *) echo >&2 "error: unsupported architecture: '$arch'"; exit 1 ;; esac; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends wget ; rm -rf /var/lib/apt/lists/*; wget --progress=dot:giga -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*; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; { 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 -Xshare:dump; fileEncoding="$(echo 'System.out.println(System.getProperty("file.encoding"))' | jshell -s -)"; [ "$fileEncoding" = 'UTF-8' ]; rm -rf ~/.java; javac --version; java --version
0.00B 2022-04-20 18:51:06 /bin/sh -c #(nop) ENV JAVA_VERSION=17.0.2
0.00B 2022-04-20 18:51:06 /bin/sh -c #(nop) ENV LANG=C.UTF-8
0.00B 2022-04-20 18:51:06 /bin/sh -c #(nop) ENV PATH=/usr/local/openjdk-17/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
0.00B 2022-04-20 18:51:06 /bin/sh -c #(nop) ENV JAVA_HOME=/usr/local/openjdk-17
4.88MB 2022-04-20 18:47:39 /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates p11-kit ; rm -rf /var/lib/apt/lists/*
0.00B 2022-04-20 12:43:27 /bin/sh -c #(nop) CMD ["bash"]
80.41MB 2022-04-20 12:43:27 /bin/sh -c #(nop) ADD file:8b1e79f91081eb527b455431af58e823d8b84d9d0c8e5c47cb7bda7507954ae4 in /

镜像信息

{
    "Id": "sha256:37cb44321d0423bc57266a3bff658daf00478e4cdf2d3b8091f785310534256d",
    "RepoTags": [
        "openjdk:17-slim",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openjdk:17-slim"
    ],
    "RepoDigests": [
        "openjdk@sha256:aaa3b3cb27e3e520b8f116863d0580c438ed55ecfa0bc126b41f68c3f62f9774",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openjdk@sha256:779635c0c3d23cc8dbab2d8c1ee4cf2a9202e198dfc8f4c0b279824d9b8e0f22"
    ],
    "Parent": "",
    "Comment": "",
    "Created": "2022-04-20T10:51:22.327613559Z",
    "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-17/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "JAVA_HOME=/usr/local/openjdk-17",
            "LANG=C.UTF-8",
            "JAVA_VERSION=17.0.2"
        ],
        "Cmd": [
            "jshell"
        ],
        "Image": "sha256:3b8bbc88903385e0eb4661a9206f123be0b32b97fdd7237ab86cdbbf75cfc5d6",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 407749778,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/7f4999cf1b1917b722c3621b6c536ffa678d577038ec294bd54d03675c8b3d45/diff:/var/lib/docker/overlay2/f46f5b0eef61bfc6262e01cb9d0ddd5f451e235cf42a969a45d6438ba60ee614/diff",
            "MergedDir": "/var/lib/docker/overlay2/a42f13a3d88cfc0a5a7ad3211c822344766ea0f0e9a5dd959a13a7a23bf9a81f/merged",
            "UpperDir": "/var/lib/docker/overlay2/a42f13a3d88cfc0a5a7ad3211c822344766ea0f0e9a5dd959a13a7a23bf9a81f/diff",
            "WorkDir": "/var/lib/docker/overlay2/a42f13a3d88cfc0a5a7ad3211c822344766ea0f0e9a5dd959a13a7a23bf9a81f/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:9c1b6dd6c1e6be9fdd2b1987783824670d3b0dd7ae8ad6f57dc3cea5739ac71e",
            "sha256:13a34b6fff7804cf7f6e8f52a4cf25ceb2e32fc35a6f39e8158074c64831ebf0",
            "sha256:6be690267e47ddcfd965449d2af70a9eca9879f9436948ee83d7f4ad473b8e64"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-07-03T23:23:10.606220858+08:00"
    }
}

更多版本

docker.io/openjdk:16-buster

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

docker.io/openjdk:16-jdk-buster

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

docker.io/openjdk:16.0.2

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

docker.io/openjdk:23-slim-bookworm

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

docker.io/openjdk:11

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

docker.io/openjdk:11

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

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

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

docker.io/openjdk:8-jre

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

docker.io/openjdk:17

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

docker.io/openjdk:17-slim

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

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

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

docker.io/openjdk:8-jdk

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

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

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

docker.io/openjdk:11.0.16-jdk

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

docker.io/openjdk:17-jdk-alpine

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

docker.io/openjdk:17.0.2-oraclelinux8

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

docker.io/openjdk:18-bullseye

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

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

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

docker.io/openjdk:8-alpine

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

docker.io/openjdk:17-jdk

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

docker.io/openjdk:21

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

docker.io/openjdk:8u342-jdk

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

docker.io/openjdk:8u102-jdk

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

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

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

docker.io/openjdk:8-jre-slim

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

docker.io/openjdk:8u292

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

docker.io/openjdk:8u342

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

docker.io/openjdk:8-jdk-alpine

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

docker.io/openjdk:8-jdk-alpine

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

docker.io/openjdk:8-jdk-alpine

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

docker.io/openjdk:8-jdk-alpine

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