docker.io/bellsoft/liberica-openjre-alpine-musl:17 linux/amd64

docker.io/bellsoft/liberica-openjre-alpine-musl:17 - 国内下载镜像源 浏览次数:55

Liberica OpenJDK 11 Alpine 镜像

该镜像基于 Alpine Linux 操作系统,并包含了 BellSoft 的 Liberica OpenJDK 11 运行时环境,使用 musl libc 库。

该镜像轻量级、快速且安全,适用于需要使用 Java 运行时环境的容器化应用程序。

主要特点:

  • 基于 Alpine Linux 操作系统,镜像大小非常小。
  • 使用 musl libc 库,提供了一个安全、轻量级的标准 C 库。
  • 包含 Liberica OpenJDK 11 运行时环境,支持多种 JVM 选项。
  • 适用于各种容器化 Java 应用程序。

您可以使用该镜像构建自己的容器,或直接运行 Java 应用程序。

源镜像 docker.io/bellsoft/liberica-openjre-alpine-musl:17
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/bellsoft/liberica-openjre-alpine-musl:17
镜像ID sha256:f9362bc1b1ac67cc2e98df7add39a4b8d8532e4bbab3ff61f378507af9440c93
镜像TAG 17
大小 120.26MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD /bin/sh
启动入口
工作目录
OS/平台 linux/amd64
浏览量 55 次
贡献者 xi**********t@163.com
镜像创建 2024-10-17T17:43:32.754042265Z
同步时间 2024-11-08 17:55
更新时间 2025-01-03 17:07
环境变量
PATH=/usr/lib/jvm/jre-17.0.13-bellsoft-x86_64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin LANG=en_US.UTF-8 LANGUAGE=en_US:en JAVA_HOME=/usr/lib/jvm/jre-17.0.13-bellsoft-x86_64

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

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/bellsoft/liberica-openjre-alpine-musl:17
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/bellsoft/liberica-openjre-alpine-musl:17  docker.io/bellsoft/liberica-openjre-alpine-musl:17

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2024-10-18 01:43:32  0.00B 设置环境变量 JAVA_HOME PATH
ENV JAVA_HOME=/usr/lib/jvm/jre-17.0.13-bellsoft-x86_64 PATH=/usr/lib/jvm/jre-17.0.13-bellsoft-x86_64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2024-10-18 01:43:32  112.46MB 执行命令并创建新的镜像层
RUN |8 LIBERICA_VERSION=17.0.13 LIBERICA_BUILD=12 LIBERICA_VARIANT=jre LIBERICA_ROOT=/usr/lib/jvm/jre-17.0.13-bellsoft-x86_64 LIBERICA_RELEASE_TAG=17.0.13 LIBERICA_USE_LITE=1 LIBSUFFIX=-musl LIBERICA_GENERATE_CDS=false /bin/sh -c LIBERICA_ARCH='' && LIBERICA_ARCH_TAG='' &&      apk --no-cache upgrade libcrypto3 libssl3  &&      set -x &&                                          case `uname -m` in                                       x86_64)                                                LIBERICA_ARCH="x64"                                ;;                                             aarch64)                                               LIBERICA_ARCH="aarch64"                            ;;                                             *)                                                     LIBERICA_ARCH=`uname -m`                           ;;                                       esac                                               &&    RTAG="$LIBERICA_RELEASE_TAG"   &&    if [ "x${RTAG}" = "x" ]; then RTAG="$LIBERICA_VERSION"; fi   &&    PACKED_ROOT="jre${LIBERICA_VERSION}"   &&    LITE_VERSION_EXCLUDES=""   &&    if [ "$LIBERICA_USE_LITE" = "1" ]; then           LITE_VERSION_EXCLUDES="--exclude ${PACKED_ROOT}/man"; fi &&    if [ "$LIBERICA_USE_LITE" = "1" ]; then              RSUFFIX="-lite";                                 LITE_URL="/docker" ;                         else                                                 RSUFFIX="";                                      LITE_URL="";                                 fi   &&    mkdir -p $LIBERICA_ROOT   &&    mkdir -p /tmp/java   &&    LIBERICA_BUILD_STR=${LIBERICA_BUILD:+"+${LIBERICA_BUILD}"}   &&    PKG=`echo "bellsoft-${LIBERICA_VARIANT}${LIBERICA_VERSION}${LIBERICA_BUILD_STR}-linux-${LIBERICA_ARCH}${LIBSUFFIX}${RSUFFIX}.tar.gz"`   &&    PKG_URL="https://download.bell-sw.com/java/${LIBERICA_VERSION}${LIBERICA_BUILD_STR}${LITE_URL}/${PKG}"   &&    echo "Download ${PKG_URL}"   &&    wget "${PKG_URL}" -O /tmp/java/jre.tar.gz   &&    SHA_URL="https://download.bell-sw.com/sha1sum/java/${LIBERICA_VERSION}${LIBERICA_BUILD_STR}"   &&    if [ "$LIBERICA_USE_LITE" = "1" ]; then                                                              SHA_URL="https://download.bell-sw.com/java/${LIBERICA_VERSION}${LIBERICA_BUILD_STR}/docker/sha1sum.txt";                 fi   &&    SHA1=$(wget -q ${SHA_URL} -O -  | grep ${PKG} | grep -v json | cut -f1 -d' ')      &&    echo "${SHA1} */tmp/java/jre.tar.gz" | sha1sum -c -   &&    tar xzf /tmp/java/jre.tar.gz -C /tmp/java $LITE_VERSION_EXCLUDES   &&    find "/tmp/java/${LIBERICA_VARIANT}-${LIBERICA_VERSION}" -maxdepth 1 -mindepth 1 -exec mv "{}" "${LIBERICA_ROOT}/" \;   &&    ln -s "${LIBERICA_ROOT}" /usr/lib/jvm/jre   &&    (ls /usr/lib/jvm/jre/lib/client 1>/dev/null 2>&1 && (rm -rf /usr/lib/jvm/jre/lib/client && sed -i 's#-client\s\+KNOWN#-client IGNORE#g' /usr/lib/jvm/jre/lib/jvm.cfg) || : )   &&    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-18 01:43:32  0.00B 定义构建参数
ARG LIBERICA_GENERATE_CDS=false
                        
# 2024-10-18 01:43:32  0.00B 定义构建参数
ARG LIBSUFFIX=-musl
                        
# 2024-10-18 01:43:32  0.00B 定义构建参数
ARG LIBERICA_USE_LITE=1
                        
# 2024-10-18 01:43:32  0.00B 定义构建参数
ARG LIBERICA_RELEASE_TAG=
                        
# 2024-10-18 01:43:32  0.00B 定义构建参数
ARG LIBERICA_ROOT=/usr/lib/jvm/jre-17.0.13-bellsoft
                        
# 2024-10-18 01:43:32  0.00B 定义构建参数
ARG LIBERICA_VARIANT=jre
                        
# 2024-10-18 01:43:32  0.00B 定义构建参数
ARG LIBERICA_BUILD=12
                        
# 2024-10-18 01:43:32  0.00B 定义构建参数
ARG LIBERICA_VERSION=17.0.13
                        
# 2024-10-18 01:43:32  0.00B 设置环境变量 LANG LANGUAGE
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en
                        
# 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:f9362bc1b1ac67cc2e98df7add39a4b8d8532e4bbab3ff61f378507af9440c93",
    "RepoTags": [
        "bellsoft/liberica-openjre-alpine-musl:17",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/bellsoft/liberica-openjre-alpine-musl:17"
    ],
    "RepoDigests": [
        "bellsoft/liberica-openjre-alpine-musl@sha256:6f1f2c30f65fdee0ef0fe2dfe25069d8789f712d8846005fd9ef26b5292ad721",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/bellsoft/liberica-openjre-alpine-musl@sha256:306bcb4122335def4cc4927cb5e247aca44250860e66a51e44f466b90d3b4076"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-10-17T17:43:32.754042265Z",
    "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/jre-17.0.13-bellsoft-x86_64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "LANG=en_US.UTF-8",
            "LANGUAGE=en_US:en",
            "JAVA_HOME=/usr/lib/jvm/jre-17.0.13-bellsoft-x86_64"
        ],
        "Cmd": [
            "/bin/sh"
        ],
        "Image": "",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 120256097,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/56dbc2212cbc9b991b1a93a72a8c08a3a8460c06576fe4f3267009446334aa65/diff",
            "MergedDir": "/var/lib/docker/overlay2/a3f8260830e7ce68f81fb4cd60bffce4b8f59b32eeb76b0dc6af0463a19efcd6/merged",
            "UpperDir": "/var/lib/docker/overlay2/a3f8260830e7ce68f81fb4cd60bffce4b8f59b32eeb76b0dc6af0463a19efcd6/diff",
            "WorkDir": "/var/lib/docker/overlay2/a3f8260830e7ce68f81fb4cd60bffce4b8f59b32eeb76b0dc6af0463a19efcd6/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:63ca1fbb43ae5034640e5e6cb3e083e05c290072c5366fcaa9d62435a4cced85",
            "sha256:5eb784363785c751c7e3ea9eb9341723d239024f9d7b6a08da97edfbf5fe54f9"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-11-08T17:55:38.339495564+08:00"
    }
}

更多版本

docker.io/bellsoft/liberica-openjre-alpine-musl:17

linux/amd64 docker.io120.26MB2024-11-08 17:55
54

docker.io/bellsoft/liberica-openjre-alpine-musl:21

linux/amd64 docker.io138.68MB2024-11-08 18:25
45