docker.io/bellsoft/liberica-openjdk-alpine:21.0.5 linux/amd64

docker.io/bellsoft/liberica-openjdk-alpine:21.0.5 - 国内下载镜像源 浏览次数:41
```html

这是一个基于Alpine Linux的Liberica OpenJDK镜像。它是一个轻量级的Java运行时环境,包含了OpenJDK的运行时和工具,适合用于构建和运行Java应用程序。Alpine Linux是一个精简的Linux发行版,使得镜像体积更小,从而加快下载速度和减少磁盘空间占用。

```
源镜像 docker.io/bellsoft/liberica-openjdk-alpine:21.0.5
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/bellsoft/liberica-openjdk-alpine:21.0.5
镜像ID sha256:d43307e6c1df4b712263c3a0488293d7ca9869f8f84886fa0e04e6559fff57f8
镜像TAG 21.0.5
大小 135.39MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD /bin/sh
启动入口
工作目录
OS/平台 linux/amd64
浏览量 41 次
贡献者
镜像创建 2024-10-17T17:41:32.64645524Z
同步时间 2024-12-07 14:11
更新时间 2025-01-07 18:22
环境变量
PATH=/usr/lib/jvm/jdk-21.0.5-bellsoft-x86_64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8:en JAVA_HOME=/usr/lib/jvm/jdk-21.0.5-bellsoft-x86_64
镜像安全扫描 查看Trivy扫描报告

系统OS: alpine 3.20.3 扫描引擎: Trivy 扫描时间: 2024-12-07 14:13

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

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

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/bellsoft/liberica-openjdk-alpine:21.0.5
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/bellsoft/liberica-openjdk-alpine:21.0.5  docker.io/bellsoft/liberica-openjdk-alpine:21.0.5

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/bellsoft/liberica-openjdk-alpine:21.0.5
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/bellsoft/liberica-openjdk-alpine:21.0.5  docker.io/bellsoft/liberica-openjdk-alpine:21.0.5

Shell快速替换命令

sed -i 's#bellsoft/liberica-openjdk-alpine:21.0.5#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/bellsoft/liberica-openjdk-alpine:21.0.5#' deployment.yaml

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2024-10-18 01:41:32  0.00B 设置环境变量 JAVA_HOME PATH
ENV JAVA_HOME=/usr/lib/jvm/jdk-21.0.5-bellsoft-x86_64 PATH=/usr/lib/jvm/jdk-21.0.5-bellsoft-x86_64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2024-10-18 01:41:32  119.24MB 执行命令并创建新的镜像层
RUN |13 GLIBC_PREFIX=/usr/glibc EXT_GCC_LIBS_URL=https://archive.archlinux.org/packages/g/gcc-libs/gcc-libs-8.3.0-1-x86_64.pkg.tar.xz EXT_ZLIB_URL=https://archive.archlinux.org/packages/z/zlib/zlib-1%3A1.2.11-4-x86_64.pkg.tar.xz LANG=en_US.UTF-8 OPT_PKGS= LIBERICA_IMAGE_VARIANT=lite LIBERICA_VM=server LIBERICA_GENERATE_CDS=false LIBERICA_JVM_DIR=/usr/lib/jvm LIBERICA_VERSION=21.0.5 LIBERICA_BUILD=11 LIBERICA_ROOT=/usr/lib/jvm/jdk-21.0.5-bellsoft-x86_64 BASE_URL=https://download.bell-sw.com/java/ /bin/sh -c LIBERICA_ARCH=''                                 && apk --no-cache upgrade libcrypto3 libssl3       && set -x                                          &&    case `uname -m` in                                     x86_64)                                                LIBERICA_ARCH="amd64"                              ;;                                             i686)                                                  LIBERICA_ARCH="i586"                               ;;                                             aarch64)                                               LIBERICA_ARCH="aarch64"                            ;;                                             armv[67]l)                                             LIBERICA_ARCH="arm32-vfp-hflt";                    ;;                                             ppc64le)                                               LIBERICA_ARCH="ppc64le";                           ;;                                             *)                                                     LIBERICA_ARCH=`uname -m`                           ;;                                         esac                                         &&    ln -s ${GLIBC_PREFIX}/lib/ld-*.so* /lib                     &&    ln -s ${GLIBC_PREFIX}/etc/ld.so.cache /etc                  &&    if [ "$LIBERICA_ARCH" = "amd64" ]; then                             ln -s /lib /lib64                                         &&      mkdir /tmp/zlib                                           &&      wget -O - "${EXT_ZLIB_URL}" | tar xJf - -C /tmp/zlib      &&      cp -dP /tmp/zlib/usr/lib/libz.so* "${GLIBC_PREFIX}/lib"   &&      rm -rf /tmp/zlib                                          &&      mkdir /tmp/gcc                                            &&      wget -O - "${EXT_GCC_LIBS_URL}" | tar xJf - -C /tmp/gcc   &&      cp -dP /tmp/gcc/usr/lib/libgcc* /tmp/gcc/usr/lib/libstdc++* "${GLIBC_PREFIX}/lib"   &&      rm -rf /tmp/gcc;             fi                       &&    for pkg in $OPT_PKGS ; do apk --no-cache add $pkg ; done   &&    ${GLIBC_PREFIX}/sbin/ldconfig                              &&    echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' > /etc/nsswitch.conf   &&    case "$LIBERICA_IMAGE_VARIANT" in                                               standard)                                                                       RSUFFIX=""                                                    &&            LITE_URL="" ;;                                                          lite|base|base-minimal)                                                         RSUFFIX="-lite"                                               &&            LITE_URL="/docker" ;;                                                   *) echo "Invalid parameter LIBERICA_IMAGE_VARIANT = ${LIBERICA_IMAGE_VARIANT}"      &&           echo "LIBERICA_IMAGE_VARIANT can be one of [standard|lite|base|base-minimal]"    &&           exit 1 ;;          esac              &&  if [[ ${LIBERICA_IMAGE_VARIANT} == "standard" || ${LIBERICA_IMAGE_VARIANT} == "lite" ]]; then         case $LIBERICA_VM in                                                                                  server|client|minimal|all) echo ;;                                                                  *) echo "Only server, client, minimal or all VM is avalable for LIBERICA_VM argument"       &&            echo "example: LIBERICA_VM='server'"                                                  &&            exit 1                                                                                         ;;         esac;       fi        &&    for pkg in $OPT_PKGS ; do apk --no-cache add $pkg ; done              &&    mkdir -p /tmp/java                                                    &&    LIBERICA_BUILD_STR=${LIBERICA_BUILD:+"+${LIBERICA_BUILD}"}            &&    DIST_URL=${BASE_URL}/${LIBERICA_VERSION}${LIBERICA_BUILD_STR}${LITE_URL}   &&    PKG="bellsoft-jdk${LIBERICA_VERSION}${LIBERICA_BUILD_STR}-linux-${LIBERICA_ARCH}${RSUFFIX}.tar.gz"   &&    PKG_URL="${DIST_URL}/${PKG}"           &&    echo "Download ${PKG_URL}"                                                                     &&    wget "${PKG_URL}" -O /tmp/java/jdk.tar.gz                                                      &&    SHA_URL="${DIST_URL}/sha1sum.txt"   &&    if [ ${LIBERICA_IMAGE_VARIANT} == "standard" ]; then                                                              SHA_URL="https://download.bell-sw.com/sha1sum/java/${LIBERICA_VERSION}${LIBERICA_BUILD_STR}";                 fi   &&    SHA1=$(wget -q "${SHA_URL}" -O -                         | grep ${PKG}  | grep -v json                     | cut -f1 -d' '                                  )                                     &&    echo "${SHA1} */tmp/java/jdk.tar.gz" | sha1sum -c -   &&    tar xzf /tmp/java/jdk.tar.gz -C /tmp/java             &&    UNPACKED_ROOT=/tmp/java/jdk-${LIBERICA_VERSION}*      &&    case $LIBERICA_IMAGE_VARIANT in                                 base)                                                           apk --no-cache add binutils                   &&            mkdir -pv "${LIBERICA_JVM_DIR}"               &&            ${UNPACKED_ROOT}/bin/jlink                                      --add-modules java.base                                     --compress=zip-9                                                --no-header-files                                           --no-man-pages --strip-debug                                --module-path ${UNPACKED_ROOT}/jmods                        --vm=server                                                 --release-info ${UNPACKED_ROOT}/release                     --output "${LIBERICA_ROOT}"               &&            apk del binutils ;;                                     base-minimal)                                                   apk --no-cache add binutils                   &&            mkdir -pv "${LIBERICA_JVM_DIR}"               &&            ${UNPACKED_ROOT}/bin/jlink                                      --add-modules java.base                                     --compress=zip-9                                                --no-header-files                                           --no-man-pages --strip-debug                                --module-path ${UNPACKED_ROOT}/jmods                        --vm=minimal                                                --release-info ${UNPACKED_ROOT}/release                     --output "${LIBERICA_ROOT}"               &&            apk del binutils ;;                                     standard)                                                       apk --no-cache add binutils                   &&            mkdir -pv "${LIBERICA_ROOT}"                  &&            find /tmp/java/jdk*                                             -maxdepth 1 -mindepth 1                                     -exec                                                         mv -v "{}" "${LIBERICA_ROOT}/" \;       &&            case ${LIBERICA_VM} in                                      client)                                                     rm -rf ${LIBERICA_ROOT}/lib/server      &&                rm -rf ${LIBERICA_ROOT}/lib/minimal     &&                echo "-client KNOWN"                                        >  ${LIBERICA_ROOT}/lib/jvm.cfg       &&                echo "-server ALIASED_TO -client"                           >> ${LIBERICA_ROOT}/lib/jvm.cfg                       ;;                                                        server)                                                     rm -rf ${LIBERICA_ROOT}/lib/client      &&                rm -rf ${LIBERICA_ROOT}/lib/minimal     &&                echo "-server KNOWN"                                        >  ${LIBERICA_ROOT}/lib/jvm.cfg       &&                echo "-client ALIASED_TO -server"                           >> ${LIBERICA_ROOT}/lib/jvm.cfg                       ;;                                                        minimal)                                                    ([ ! -f ${LIBERICA_ROOT}/lib/minimal ]  &&                  echo "Standard Liberica JDK does not have minimal VM"   &&                  exit 1 )                              &&                rm -rf ${LIBERICA_ROOT}/lib/server      &&                rm -rf ${LIBERICA_ROOT}/lib/minimal     &&                echo "-minimal KNOWN"                                       >  ${LIBERICA_ROOT}/lib/jvm.cfg       &&                echo "-client ALIASED_TO -minimal"                          >> ${LIBERICA_ROOT}/lib/jvm.cfg       &&                echo "-client ALIASED_TO -minimal"                          >> ${LIBERICA_ROOT}/lib/jvm.cfg                       ;;                                                        all) echo ;;                                              *) echo "Unknows LIBERICA_VM value \"${LIBERICA_VM}\""   &&                 exit 1 ;;                                            esac                                        &&            apk del binutils ;;                                   *)                                                              MODS=$( ls ${UNPACKED_ROOT}/jmods/                                | sed "s/.jmod//"                                           | grep -v javafx                                            | tr '\n' ', '                                              | sed "s/,$//")                         &&            apk --no-cache add binutils                   &&            mkdir -pv "${LIBERICA_JVM_DIR}"               &&            ${UNPACKED_ROOT}/bin/jlink                                      --add-modules ${MODS}                                       --compress=zip-9                                            --no-man-pages                                              --module-path ${UNPACKED_ROOT}/jmods                        --vm=${LIBERICA_VM}                                         --release-info ${UNPACKED_ROOT}/release                     --output "${LIBERICA_ROOT}"               &&            apk del binutils ;;                                 esac                                                  &&    ln -s $LIBERICA_ROOT /usr/lib/jvm/jdk                 &&    if [[ $LIBERICA_GENERATE_CDS == true ]]; then                            ${LIBERICA_ROOT}/bin/java -XX:+UseCompressedOops -Xshare:dump;           ${LIBERICA_ROOT}/bin/java -XX:-UseCompressedOops -Xshare:dump;       else                                                                         find ${LIBERICA_ROOT} -name "classes*.jsa" -exec rm {} \; ;          fi                                 &&    rm -rf /tmp/java               &&    rm -rf /tmp/hsperfdata_root # buildkit
                        
# 2024-10-17 23:43:02  8.36MB 复制新文件或目录到容器中
COPY /root/dest/ / # buildkit
                        
# 2024-10-17 23:43:02  0.00B 定义构建参数
ARG BASE_URL=https://download.bell-sw.com/java/
                        
# 2024-10-17 23:43:02  0.00B 定义构建参数
ARG LIBERICA_ROOT=/usr/lib/jvm/jdk-21.0.5-bellsoft
                        
# 2024-10-17 23:43:02  0.00B 定义构建参数
ARG LIBERICA_BUILD=11
                        
# 2024-10-17 23:43:02  0.00B 定义构建参数
ARG LIBERICA_VERSION=21.0.5
                        
# 2024-10-17 23:43:02  0.00B 定义构建参数
ARG LIBERICA_JVM_DIR=/usr/lib/jvm
                        
# 2024-10-17 23:43:02  0.00B 定义构建参数
ARG LIBERICA_GENERATE_CDS=false
                        
# 2024-10-17 23:43:02  0.00B 定义构建参数
ARG LIBERICA_VM=server
                        
# 2024-10-17 23:43:02  0.00B 定义构建参数
ARG LIBERICA_IMAGE_VARIANT=lite
                        
# 2024-10-17 23:43:02  0.00B 设置环境变量 LANG LANGUAGE
ENV LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8:en
                        
# 2024-10-17 23:43:02  0.00B 定义构建参数
ARG OPT_PKGS=
                        
# 2024-10-17 23:43:02  0.00B 定义构建参数
ARG LANG=en_US.UTF-8
                        
# 2024-10-17 23:43:02  0.00B 定义构建参数
ARG EXT_ZLIB_URL=https://archive.archlinux.org/packages/z/zlib/zlib-1%3A1.2.11-4-x86_64.pkg.tar.xz
                        
# 2024-10-17 23:43:02  0.00B 定义构建参数
ARG EXT_GCC_LIBS_URL=https://archive.archlinux.org/packages/g/gcc-libs/gcc-libs-8.3.0-1-x86_64.pkg.tar.xz
                        
# 2024-10-17 23:43:02  0.00B 定义构建参数
ARG GLIBC_PREFIX=/usr/glibc
                        
# 2024-09-07 06:20:07  0.00B 
/bin/sh -c #(nop)  CMD ["/bin/sh"]
                        
# 2024-09-07 06:20:07  7.80MB 
/bin/sh -c #(nop) ADD file:5758b97d8301c84a204a6e516241275d785a7cade40b2fb99f01fe122482e283 in / 
                        
                    

镜像信息

{
    "Id": "sha256:d43307e6c1df4b712263c3a0488293d7ca9869f8f84886fa0e04e6559fff57f8",
    "RepoTags": [
        "bellsoft/liberica-openjdk-alpine:21.0.5",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/bellsoft/liberica-openjdk-alpine:21.0.5"
    ],
    "RepoDigests": [
        "bellsoft/liberica-openjdk-alpine@sha256:45083bf56e4cf13c34c6ec04356deec655638c8aa8443f9dcab7a90fb4db8fb6",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/bellsoft/liberica-openjdk-alpine@sha256:467a6e20894716c4f6037c46ad3d8e57bdf232bfb3af2bf748238f41a52e03d4"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-10-17T17:41:32.64645524Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/lib/jvm/jdk-21.0.5-bellsoft-x86_64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "LANG=en_US.UTF-8",
            "LANGUAGE=en_US.UTF-8:en",
            "JAVA_HOME=/usr/lib/jvm/jdk-21.0.5-bellsoft-x86_64"
        ],
        "Cmd": [
            "/bin/sh"
        ],
        "Image": "",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 135391003,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/5213c5428841d84b785ac1ed0d621541b94fa1a7ffb4138c930618fad74108b4/diff:/var/lib/docker/overlay2/56dbc2212cbc9b991b1a93a72a8c08a3a8460c06576fe4f3267009446334aa65/diff",
            "MergedDir": "/var/lib/docker/overlay2/98d1cf99d16b1f03631a7f0ea468ae15cff872980b5a90c3ea6acbb4bdb6fbc8/merged",
            "UpperDir": "/var/lib/docker/overlay2/98d1cf99d16b1f03631a7f0ea468ae15cff872980b5a90c3ea6acbb4bdb6fbc8/diff",
            "WorkDir": "/var/lib/docker/overlay2/98d1cf99d16b1f03631a7f0ea468ae15cff872980b5a90c3ea6acbb4bdb6fbc8/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:63ca1fbb43ae5034640e5e6cb3e083e05c290072c5366fcaa9d62435a4cced85",
            "sha256:d4363e158a5a53506a83372ebb066e830a14498a77a0b0491fc8e8e10b5d7a44",
            "sha256:37a787d0c3d24f41729e6d581e754471e2af47a1915e80877eb602eac80ebbc2"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-12-07T14:11:40.078607283+08:00"
    }
}

更多版本

docker.io/bellsoft/liberica-openjdk-alpine:13

linux/amd64 docker.io135.76MB2024-12-01 17:18
45

docker.io/bellsoft/liberica-openjdk-alpine:21.0.5

linux/amd64 docker.io135.39MB2024-12-07 14:11
40