docker.io/adoptopenjdk/openjdk11:debian linux/amd64

docker.io/adoptopenjdk/openjdk11:debian - 国内下载镜像源 浏览次数:181
## OpenJDK 11 镜像 该镜像基于 Docker.io 的 AdoptOpenJDK/openjdk11 镜像,该镜像是使用 Java 11 编译构建的。
  1. 语言:Java
  2. 版本:11
  3. 来源:Docker.io
  4. 名称:adoptopenjdk/openjdk11
使用 Docker 的 RUN 命令可以在镜像中安装指定的 Java 版本。 ```bash docker run -it --rm adoptopenjdk/openjdk11:latest /bin/bash -c "java --version" ``` 该命令将从 Docker 镜像中运行一个容器,并在其中执行一个 bash shell。通过使用 `--rm` 标志,容器将在完成后自动删除。 你也可以使用以下命令来获取帮助信息: ```bash docker run -it --rm adoptopenjdk/openjdk11:latest /bin/bash -c "java -h" ``` 该命令会为你提供关于 Java 命令的帮助信息。
源镜像 docker.io/adoptopenjdk/openjdk11:debian
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/adoptopenjdk/openjdk11:debian
镜像ID sha256:dfcdaf9834cebcf1efbe74d71747383bb14abf10c03254a9cdf750135b1026f1
镜像TAG debian
大小 482.92MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD jshell
启动入口
工作目录
OS/平台 linux/amd64
浏览量 181 次
贡献者 in*o@starmetal.com.cn
镜像创建 2024-07-28T17:55:05.392424594Z
同步时间 2024-08-31 16:46
更新时间 2025-01-15 11:29
环境变量
PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 JAVA_VERSION=jdk-11.0.24+8 JAVA_HOME=/opt/java/openjdk

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

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/adoptopenjdk/openjdk11:debian
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/adoptopenjdk/openjdk11:debian  docker.io/adoptopenjdk/openjdk11:debian

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/adoptopenjdk/openjdk11:debian
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/adoptopenjdk/openjdk11:debian  docker.io/adoptopenjdk/openjdk11:debian

Shell快速替换命令

sed -i 's#adoptopenjdk/openjdk11:debian#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/adoptopenjdk/openjdk11:debian#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/adoptopenjdk/openjdk11:debian && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/adoptopenjdk/openjdk11:debian  docker.io/adoptopenjdk/openjdk11:debian'

Ansible快速分发-Containerd

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

镜像构建历史


# 2024-07-29 01:55:05  0.00B 设置默认要执行的命令
CMD ["jshell"]
                        
# 2024-07-29 01:55:05  0.00B 设置环境变量 JAVA_HOME PATH
ENV JAVA_HOME=/opt/java/openjdk PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2024-07-29 01:55:05  325.17MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux;     ARCH="$(dpkg --print-architecture)";     case "${ARCH}" in        aarch64|arm64)          ESUM='04e21301fedc76841fb03929ac6cacfbbda30b5693acfd515a8f34d4a0cdeb28';          BINARY_URL='https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.24%2B8/OpenJDK11U-jdk_aarch64_linux_hotspot_11.0.24_8.tar.gz';          ;;        armhf|armv7l)          ESUM='9d14a076d1440161ab4c9736644e8e9f4719eb8e9f44c03470640960c3cd5e00';          BINARY_URL='https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.24%2B8/OpenJDK11U-jdk_arm_linux_hotspot_11.0.24_8.tar.gz';          ;;        ppc64el|ppc64le)          ESUM='4dfdc498938a159c592a2f094576f09c94999e17327c1f5ff81794694992054d';          BINARY_URL='https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.24%2B8/OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.24_8.tar.gz';          ;;        s390x)          ESUM='7f049af5d3ff8794d07da1c31752e18e204653930f1d422e2d42905c90c1c408';          BINARY_URL='https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.24%2B8/OpenJDK11U-jdk_s390x_linux_hotspot_11.0.24_8.tar.gz';          ;;        amd64|x86_64)          ESUM='0e71a01563a5c7b9988a168b0c4ce720a6dff966b3c27bb29d1ded461ff71d0e';          BINARY_URL='https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.24%2B8/OpenJDK11U-jdk_x64_linux_hotspot_11.0.24_8.tar.gz';          ;;        *)          echo "Unsupported arch: ${ARCH}";          exit 1;          ;;     esac;     curl -LfsSo /tmp/openjdk.tar.gz ${BINARY_URL};     echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -;     mkdir -p /opt/java/openjdk;     cd /opt/java/openjdk;     tar -xf /tmp/openjdk.tar.gz --strip-components=1;     rm -rf /tmp/openjdk.tar.gz; # buildkit
                        
# 2024-07-29 01:54:58  0.00B 设置环境变量 JAVA_VERSION
ENV JAVA_VERSION=jdk-11.0.24+8
                        
# 2024-07-29 01:54:58  42.99MB 执行命令并创建新的镜像层
RUN /bin/sh -c apt-get update     && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata curl ca-certificates fontconfig locales     && echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen     && locale-gen en_US.UTF-8     && rm -rf /var/lib/apt/lists/* # buildkit
                        
# 2024-07-29 01:54:58  0.00B 设置环境变量 LANG LANGUAGE LC_ALL
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
                        
# 2024-06-13 09:21:29  0.00B 
/bin/sh -c #(nop)  CMD ["bash"]
                        
# 2024-06-13 09:21:28  114.76MB 
/bin/sh -c #(nop) ADD file:82f06126089fd0ca482c29baeb90ef37ac3a9f5f6a0f2f5c968a605846627d47 in / 
                        
                    

镜像信息

{
    "Id": "sha256:dfcdaf9834cebcf1efbe74d71747383bb14abf10c03254a9cdf750135b1026f1",
    "RepoTags": [
        "adoptopenjdk/openjdk11:debian",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/adoptopenjdk/openjdk11:debian"
    ],
    "RepoDigests": [
        "adoptopenjdk/openjdk11@sha256:e22b0ca3075a7af483f0a8661e905ad04fd7e82f4c211f8c6692c24d185a7668",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/adoptopenjdk/openjdk11@sha256:2f11393ed9443242aee4d07fd30150926d6619c107bd5be1f95946ccc8e090f6"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-07-28T17:55:05.392424594Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "LANG=en_US.UTF-8",
            "LANGUAGE=en_US:en",
            "LC_ALL=en_US.UTF-8",
            "JAVA_VERSION=jdk-11.0.24+8",
            "JAVA_HOME=/opt/java/openjdk"
        ],
        "Cmd": [
            "jshell"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 482921489,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/ec94fac29714bf82c9c98bfd4ca4c939e606ec63cb814213f7f72991558f3f1f/diff:/var/lib/docker/overlay2/77121042475a3340f1bb05264b0a5fe0c30d704e6163a7d80e91ced3585dbbb8/diff",
            "MergedDir": "/var/lib/docker/overlay2/5363b2b7081156bb2d5607fd0f8196bcd74d3624ec9ef5e0d7c58aa69a2ae17b/merged",
            "UpperDir": "/var/lib/docker/overlay2/5363b2b7081156bb2d5607fd0f8196bcd74d3624ec9ef5e0d7c58aa69a2ae17b/diff",
            "WorkDir": "/var/lib/docker/overlay2/5363b2b7081156bb2d5607fd0f8196bcd74d3624ec9ef5e0d7c58aa69a2ae17b/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:19b1230ac19da0b27c923fa01d30578f13ca2b309e8b25f04023e433df628c70",
            "sha256:67c42f0c923c3e3515d57ce38a5144ec7aebc7814378154aa8f3c56e8b3e7f26",
            "sha256:734e2d8a02ebf7b77871a6ea61d200ce1dc0283e8fd50a12140089a70cd082a4"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-08-31T16:45:00.337567021+08:00"
    }
}

更多版本

docker.io/adoptopenjdk/openjdk11:debian

linux/amd64 docker.io482.92MB2024-08-31 16:46
180

docker.io/adoptopenjdk/openjdk11:debian

linux/arm64 docker.io472.67MB2024-08-31 16:47
163