docker.io/adoptopenjdk/openjdk8:alpine-slim linux/amd64

docker.io/adoptopenjdk/openjdk8:alpine-slim - 国内下载镜像源 浏览次数:26
源镜像 docker.io/adoptopenjdk/openjdk8:alpine-slim
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/adoptopenjdk/openjdk8:alpine-slim
镜像ID sha256:7bcb165c2bb8268a8e22b793a127fd0579182edb76363739637603289c202ebf
镜像TAG alpine-slim
大小 117.36MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD /bin/sh
启动入口
工作目录
OS/平台 linux/amd64
浏览量 26 次
贡献者
镜像创建 2025-01-12T16:02:40.349407883Z
同步时间 2025-01-14 11:29
更新时间 2025-01-18 10:50
环境变量
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=jdk8u432-b06 JAVA_HOME=/opt/java/openjdk

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

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/adoptopenjdk/openjdk8:alpine-slim
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/adoptopenjdk/openjdk8:alpine-slim  docker.io/adoptopenjdk/openjdk8:alpine-slim

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/adoptopenjdk/openjdk8:alpine-slim
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/adoptopenjdk/openjdk8:alpine-slim  docker.io/adoptopenjdk/openjdk8:alpine-slim

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2025-01-13 00:02:40  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
                        
# 2025-01-13 00:02:40  97.23MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux;     apk add --no-cache --virtual .fetch-deps curl;     ARCH="$(apk --print-arch)";     case "${ARCH}" in        amd64|x86_64)          ESUM='abaaa90deadf51bd28921453baf2992b3dff6171bb7142f5bdd14ef269f7b245';          BINARY_URL='https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u432-b06/OpenJDK8U-jdk_x64_linux_hotspot_8u432b06.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;     export PATH="/opt/java/openjdk/bin:$PATH";     apk add --no-cache --virtual .build-deps bash binutils;     /usr/local/bin/slim-java.sh /opt/java/openjdk;     apk del --purge .build-deps;     rm -rf /var/cache/apk/*;     apk del --purge .fetch-deps;     rm -rf /var/cache/apk/*;     rm -rf /tmp/openjdk.tar.gz; # buildkit
                        
# 2025-01-13 00:01:11  16.74KB 复制新文件或目录到容器中
COPY slim-java* /usr/local/bin/ # buildkit
                        
# 2025-01-13 00:01:11  0.00B 设置环境变量 JAVA_VERSION
ENV JAVA_VERSION=jdk8u432-b06
                        
# 2025-01-13 00:01:11  14.50MB 执行命令并创建新的镜像层
RUN /bin/sh -c apk add --no-cache tzdata --virtual .build-deps curl binutils zstd     && GLIBC_VER="2.33-r0"     && ALPINE_GLIBC_REPO="https://github.com/sgerrand/alpine-pkg-glibc/releases/download"     && GCC_LIBS_URL="https://archive.archlinux.org/packages/g/gcc-libs/gcc-libs-10.1.0-2-x86_64.pkg.tar.zst"     && GCC_LIBS_SHA256="f80320a03ff73e82271064e4f684cd58d7dbdb07aa06a2c4eea8e0f3c507c45c"     && ZLIB_URL="https://archive.archlinux.org/packages/z/zlib/zlib-1%3A1.2.11-3-x86_64.pkg.tar.xz"     && ZLIB_SHA256=17aede0b9f8baa789c5aa3f358fbf8c68a5f1228c5e6cba1a5dd34102ef4d4e5     && curl -LfsS https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub -o /etc/apk/keys/sgerrand.rsa.pub     && SGERRAND_RSA_SHA256="823b54589c93b02497f1ba4dc622eaef9c813e6b0f0ebbb2f771e32adf9f4ef2"     && echo "${SGERRAND_RSA_SHA256} */etc/apk/keys/sgerrand.rsa.pub" | sha256sum -c -     && curl -LfsS ${ALPINE_GLIBC_REPO}/${GLIBC_VER}/glibc-${GLIBC_VER}.apk > /tmp/glibc-${GLIBC_VER}.apk     && apk add --no-cache /tmp/glibc-${GLIBC_VER}.apk     && curl -LfsS ${ALPINE_GLIBC_REPO}/${GLIBC_VER}/glibc-bin-${GLIBC_VER}.apk > /tmp/glibc-bin-${GLIBC_VER}.apk     && apk add --no-cache /tmp/glibc-bin-${GLIBC_VER}.apk     && curl -Ls ${ALPINE_GLIBC_REPO}/${GLIBC_VER}/glibc-i18n-${GLIBC_VER}.apk > /tmp/glibc-i18n-${GLIBC_VER}.apk     && apk add --no-cache /tmp/glibc-i18n-${GLIBC_VER}.apk     && /usr/glibc-compat/bin/localedef --force --inputfile POSIX --charmap UTF-8 "$LANG" || true     && echo "export LANG=$LANG" > /etc/profile.d/locale.sh     && curl -LfsS ${GCC_LIBS_URL} -o /tmp/gcc-libs.tar.zst     && echo "${GCC_LIBS_SHA256} */tmp/gcc-libs.tar.zst" | sha256sum -c -     && mkdir /tmp/gcc     && zstd -d /tmp/gcc-libs.tar.zst --output-dir-flat /tmp     && tar -xf /tmp/gcc-libs.tar -C /tmp/gcc     && mv /tmp/gcc/usr/lib/libgcc* /tmp/gcc/usr/lib/libstdc++* /usr/glibc-compat/lib     && strip /usr/glibc-compat/lib/libgcc_s.so.* /usr/glibc-compat/lib/libstdc++.so*     && curl -LfsS ${ZLIB_URL} -o /tmp/libz.tar.xz     && echo "${ZLIB_SHA256} */tmp/libz.tar.xz" | sha256sum -c -     && mkdir /tmp/libz     && tar -xf /tmp/libz.tar.xz -C /tmp/libz     && mv /tmp/libz/usr/lib/libz.so* /usr/glibc-compat/lib     && apk del --purge .build-deps glibc-i18n     && rm -rf /tmp/*.apk /tmp/gcc /tmp/gcc-libs.tar* /tmp/libz /tmp/libz.tar.xz /var/cache/apk/* # buildkit
                        
# 2025-01-13 00:01:11  0.00B 设置环境变量 LANG LANGUAGE LC_ALL
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
                        
# 2023-03-30 02:19:37  0.00B 
/bin/sh -c #(nop)  CMD ["/bin/sh"]
                        
# 2023-03-30 02:19:37  5.61MB 
/bin/sh -c #(nop) ADD file:9663235f252e072c52b0f9e25845841e4321cce2caa7467a0d736c6003b05c00 in / 
                        
                    

镜像信息

{
    "Id": "sha256:7bcb165c2bb8268a8e22b793a127fd0579182edb76363739637603289c202ebf",
    "RepoTags": [
        "adoptopenjdk/openjdk8:alpine-slim",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/adoptopenjdk/openjdk8:alpine-slim"
    ],
    "RepoDigests": [
        "adoptopenjdk/openjdk8@sha256:ae48f66a6103221569aeec331d73a5c2d467eb4ae10c29afd9809fd066583f6f",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/adoptopenjdk/openjdk8@sha256:24bfc6147aa20234c9c63dba94e59ac2a19595b13835428b2c16a6e8cf697f49"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2025-01-12T16:02:40.349407883Z",
    "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=jdk8u432-b06",
            "JAVA_HOME=/opt/java/openjdk"
        ],
        "Cmd": [
            "/bin/sh"
        ],
        "Image": "",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 117362025,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/0dbf9c1faa39f022dda454ca63421884f3940f07b98e6a0783162f1440487cb6/diff:/var/lib/docker/overlay2/17d1e5dcbd0adb0460b4acefc7c472dbaa50c6d4da7ae1fe1668709d135aee47/diff:/var/lib/docker/overlay2/47a74977dbc411166ee138c284146c28118e3bfda74982aae5535ab9ae8deea6/diff",
            "MergedDir": "/var/lib/docker/overlay2/b67b767b59367aba6f5c538948d5bd65037f28a76b05a831ab8e20ef7c49038d/merged",
            "UpperDir": "/var/lib/docker/overlay2/b67b767b59367aba6f5c538948d5bd65037f28a76b05a831ab8e20ef7c49038d/diff",
            "WorkDir": "/var/lib/docker/overlay2/b67b767b59367aba6f5c538948d5bd65037f28a76b05a831ab8e20ef7c49038d/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:9733ccc395133a067f01ee6e380003d80fe9f443673e0f992ae6a4a7860a872c",
            "sha256:be1bcc813577f27bf20b039ad9845c1fc5e132f2a585df8d3cd6ca6b1d070178",
            "sha256:10162b4b39bf9a123ba86a88572132ad4cb235bac5c006e32143581cd16f01e2",
            "sha256:cfa8ee23ebb87077d29eae22a7587b5032c9089db8b2070041d97467903f1217"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-01-14T11:29:41.466559739+08:00"
    }
}

更多版本

docker.io/adoptopenjdk/openjdk8:alpine-slim

linux/amd64 docker.io117.36MB2025-01-14 11:29
25