docker.io/sonatype/nexus:2.15.2 linux/amd64

docker.io/sonatype/nexus:2.15.2 - 国内下载镜像源 浏览次数:37 安全受验证的发布者-sonatype
```html

Sonatype Nexus 镜像

这是一个包含 Sonatype Nexus 仓库管理器的 Docker 镜像。Nexus 是一款流行的开源仓库管理器,用于存储和管理各种软件包,例如 Maven、npm、NuGet、Docker 等。使用这个镜像可以方便地快速搭建一个 Nexus 仓库,用于私有软件包的托管、代理公共仓库以及其他仓库管理任务。

```
源镜像 docker.io/sonatype/nexus:2.15.2
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/sonatype/nexus:2.15.2
镜像ID sha256:2913422eab5fd48c2268b95e684c198c78768f03398ac529b0608e48e25a424b
镜像TAG 2.15.2
大小 468.86MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD /bin/sh -c java -Dnexus-work=${SONATYPE_WORK} -Dnexus-webapp-context-path=${CONTEXT_PATH} -Xms${MIN_HEAP} -Xmx${MAX_HEAP} -cp 'conf/:lib/*' ${JAVA_OPTS} org.sonatype.nexus.bootstrap.Launcher ${LAUNCHER_CONF}
启动入口
工作目录 /opt/sonatype/nexus
OS/平台 linux/amd64
浏览量 37 次
贡献者
镜像创建 2024-11-13T23:28:53.912824156Z
同步时间 2025-03-17 11:25
更新时间 2025-03-30 19:07
开放端口
8081/tcp
环境变量
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin container=oci SONATYPE_WORK=/sonatype-work NEXUS_HOME=/opt/sonatype/nexus CONTEXT_PATH=/nexus MAX_HEAP=768m MIN_HEAP=256m JAVA_OPTS=-server -Djava.net.preferIPv4Stack=true LAUNCHER_CONF=./conf/jetty.xml ./conf/jetty-requestlog.xml ./conf/jetty-http.xml
镜像标签
x86_64: architecture 2024-05-29T03:00:15: build-date ubi7-container: com.redhat.component https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI: com.redhat.license_terms Apache License, Version 2.0: com.sonatype.license Nexus Repository Manager OSS base image: com.sonatype.name The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.: description public: distribution-scope 1.29.0: io.buildah.version The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.: io.k8s.description Red Hat Universal Base Image 7: io.k8s.display-name base rhel7: io.openshift.tags Sonatype <cloud-ops@sonatype.com>: maintainer ubi7: name 1445: release Provides the latest release of the Red Hat Universal Base Image 7.: summary https://access.redhat.com/containers/#/registry.access.redhat.com/ubi7/images/7.9-1445: url a4e710a688a6374670ecdd56637c3f683d11cbe3: vcs-ref git: vcs-type Sonatype: vendor 7.9: version

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

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/sonatype/nexus:2.15.2
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/sonatype/nexus:2.15.2  docker.io/sonatype/nexus:2.15.2

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/sonatype/nexus:2.15.2
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/sonatype/nexus:2.15.2  docker.io/sonatype/nexus:2.15.2

Shell快速替换命令

sed -i 's#sonatype/nexus:2.15.2#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/sonatype/nexus:2.15.2#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/sonatype/nexus:2.15.2 && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/sonatype/nexus:2.15.2  docker.io/sonatype/nexus:2.15.2'

Ansible快速分发-Containerd

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

镜像构建历史


# 2024-11-14 07:28:53  0.00B 设置默认要执行的命令
CMD ["/bin/sh" "-c" "java   -Dnexus-work=${SONATYPE_WORK} -Dnexus-webapp-context-path=${CONTEXT_PATH}   -Xms${MIN_HEAP} -Xmx${MAX_HEAP}   -cp 'conf/:lib/*'   ${JAVA_OPTS}   org.sonatype.nexus.bootstrap.Launcher ${LAUNCHER_CONF}"]
                        
# 2024-11-14 07:28:53  0.00B 设置环境变量 LAUNCHER_CONF
ENV LAUNCHER_CONF=./conf/jetty.xml ./conf/jetty-requestlog.xml ./conf/jetty-http.xml
                        
# 2024-11-14 07:28:53  0.00B 设置环境变量 JAVA_OPTS -Djava.net.preferIPv4Stack
ENV JAVA_OPTS=-server -Djava.net.preferIPv4Stack=true
                        
# 2024-11-14 07:28:53  0.00B 设置环境变量 MIN_HEAP
ENV MIN_HEAP=256m
                        
# 2024-11-14 07:28:53  0.00B 设置环境变量 MAX_HEAP
ENV MAX_HEAP=768m
                        
# 2024-11-14 07:28:53  0.00B 设置环境变量 CONTEXT_PATH
ENV CONTEXT_PATH=/nexus
                        
# 2024-11-14 07:28:53  0.00B 指定运行容器时使用的用户
USER nexus
                        
# 2024-11-14 07:28:53  0.00B 设置工作目录为/opt/sonatype/nexus
WORKDIR /opt/sonatype/nexus
                        
# 2024-11-14 07:28:53  0.00B 声明容器运行时监听的端口
EXPOSE map[8081/tcp:{}]
                        
# 2024-11-14 07:28:53  0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/sonatype-work]
                        
# 2024-11-14 07:28:53  75.43KB 执行命令并创建新的镜像层
RUN |2 NEXUS_VERSION=2.15.2-03 NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/oss/nexus-2.15.2-03-bundle.tar.gz /bin/sh -c useradd -r -u 200 -m -c "nexus role account" -d ${SONATYPE_WORK} -s /bin/false nexus # buildkit
                        
# 2024-11-14 07:28:53  101.67MB 执行命令并创建新的镜像层
RUN |2 NEXUS_VERSION=2.15.2-03 NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/oss/nexus-2.15.2-03-bundle.tar.gz /bin/sh -c mkdir -p ${NEXUS_HOME} &&   curl --fail --silent --location --retry 3 ${NEXUS_DOWNLOAD_URL} |   tar xz -C /tmp nexus-${NEXUS_VERSION} &&   mv /tmp/nexus-${NEXUS_VERSION}/* ${NEXUS_HOME}/ &&   rm -rf /tmp/nexus-${NEXUS_VERSION} # buildkit
                        
# 2024-11-14 07:28:51  157.76MB 执行命令并创建新的镜像层
RUN |2 NEXUS_VERSION=2.15.2-03 NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/oss/nexus-2.15.2-03-bundle.tar.gz /bin/sh -c yum install -v -y --disableplugin=subscription-manager hostname java-1.8.0-openjdk-headless   && yum-config-manager --add-repo https://vault.centos.org/centos/7/os/x86_64/   && rpm --import https://vault.centos.org/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7   && yum install -v -y createrepo   && yum --disableplugin=subscription-manager clean all # buildkit
                        
# 2024-11-14 07:28:51  0.00B 设置环境变量 NEXUS_HOME
ENV NEXUS_HOME=/opt/sonatype/nexus
                        
# 2024-11-14 07:28:51  0.00B 设置环境变量 SONATYPE_WORK
ENV SONATYPE_WORK=/sonatype-work
                        
# 2024-11-14 07:28:51  0.00B 定义构建参数
ARG NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/oss/nexus-2.15.2-03-bundle.tar.gz
                        
# 2024-11-14 07:28:51  0.00B 定义构建参数
ARG NEXUS_VERSION=2.15.2-03
                        
# 2024-11-14 07:28:51  0.00B 添加元数据标签
LABEL vendor=Sonatype maintainer=Sonatype <cloud-ops@sonatype.com> com.sonatype.license=Apache License, Version 2.0 com.sonatype.name=Nexus Repository Manager OSS base image
                        
# 2024-05-29 11:08:23  209.35MB 
/bin/sh -c mv -fZ /tmp/ubi.repo /etc/yum.repos.d/ubi.repo || :
                        
# 2024-05-29 11:08:21  0.00B 
/bin/sh -c rm -f /tmp/tls-ca-bundle.pem
                        
# 2024-05-29 11:08:20  0.00B 
/bin/sh -c rm -f '/etc/yum.repos.d/compose-rpms-Server-3-09580.repo'
                        
# 2024-05-29 11:08:20  0.00B 
/bin/sh -c #(nop) LABEL "distribution-scope"="public" "vendor"="Red Hat, Inc." "build-date"="2024-05-29T03:00:15" "architecture"="x86_64" "vcs-type"="git" "vcs-ref"="a4e710a688a6374670ecdd56637c3f683d11cbe3" "io.k8s.description"="The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly." "url"="https://access.redhat.com/containers/#/registry.access.redhat.com/ubi7/images/7.9-1445"
                        
# 2024-05-29 11:08:20  0.00B 
/bin/sh -c #(nop) ADD file:d37b75e85e78342a939327a5be40f349a146686ddde8918b97c67743e9482a1e in /root/buildinfo/Dockerfile-ubi7-7.9-1445 
                        
# 2024-05-29 11:08:20  0.00B 
/bin/sh -c #(nop) ADD file:2ae1b53aeae8c930196b5861bcc45f68eb20506349eab6024691f4d1bfb8fdd5 in /root/buildinfo/content_manifests/ubi7-container-7.9-1445.json 
                        
# 2024-05-29 11:08:19  0.00B 
/bin/sh -c #(nop) LABEL release=1445
                        
# 2024-05-29 11:08:19  0.00B 
/bin/sh -c #(nop) CMD ["/bin/bash"]
                        
# 2024-05-29 11:08:19  0.00B 
/bin/sh -c #(nop) ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2024-05-29 11:08:19  0.00B 
/bin/sh -c #(nop) ENV container oci
                        
# 2024-05-29 11:08:19  0.00B 
/bin/sh -c #(nop) LABEL io.openshift.tags="base rhel7"
                        
# 2024-05-29 11:08:19  0.00B 
/bin/sh -c #(nop) LABEL io.k8s.display-name="Red Hat Universal Base Image 7"
                        
# 2024-05-29 11:08:19  0.00B 
/bin/sh -c #(nop) LABEL description="The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly."
                        
# 2024-05-29 11:08:19  0.00B 
/bin/sh -c #(nop) LABEL summary="Provides the latest release of the Red Hat Universal Base Image 7."
                        
# 2024-05-29 11:08:19  0.00B 
/bin/sh -c #(nop) LABEL com.redhat.license_terms="https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI"
                        
# 2024-05-29 11:08:19  0.00B 
/bin/sh -c #(nop) LABEL version="7.9"
                        
# 2024-05-29 11:08:19  0.00B 
/bin/sh -c #(nop) LABEL name="ubi7"
                        
# 2024-05-29 11:08:19  0.00B 
/bin/sh -c #(nop) LABEL com.redhat.component="ubi7-container"
                        
# 2024-05-29 11:08:19  0.00B 
/bin/sh -c #(nop) MAINTAINER Red Hat, Inc.
                        
# 2024-05-29 11:08:19  0.00B 
/bin/sh -c #(nop) ADD file:a2f9792f124dcfcb102db07fe0c86c5e36e351cf6f70997792363871860dd69b in /etc/yum.repos.d/ 
                        
# 2024-05-29 11:08:19  0.00B 
/bin/sh -c #(nop) ADD file:5b1f650e1376d79fa3a65df4a154ea5166def95154b52c1c1097dfd8fc7d58eb in /tmp/tls-ca-bundle.pem 
                        
# 2024-05-29 11:08:19  0.00B 
/bin/sh -c mv -f /etc/yum.repos.d/ubi.repo /tmp || :
                        
# 2024-05-29 11:08:18  0.00B 
/bin/sh -c #(nop) ADD file:8de69e114749549726aa28936373b64669306a404556c67776fe20bcc2cc9e54 in / 
                        
                    

镜像信息

{
    "Id": "sha256:2913422eab5fd48c2268b95e684c198c78768f03398ac529b0608e48e25a424b",
    "RepoTags": [
        "sonatype/nexus:2.15.2",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/sonatype/nexus:2.15.2"
    ],
    "RepoDigests": [
        "sonatype/nexus@sha256:6bc88b51d4d71d8959f03b6a3caba71f94c4aa50e709bf41f2bc6dc3a5d9f01c",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/sonatype/nexus@sha256:6bc88b51d4d71d8959f03b6a3caba71f94c4aa50e709bf41f2bc6dc3a5d9f01c"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-11-13T23:28:53.912824156Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "Red Hat, Inc.",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "nexus",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "ExposedPorts": {
            "8081/tcp": {}
        },
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "container=oci",
            "SONATYPE_WORK=/sonatype-work",
            "NEXUS_HOME=/opt/sonatype/nexus",
            "CONTEXT_PATH=/nexus",
            "MAX_HEAP=768m",
            "MIN_HEAP=256m",
            "JAVA_OPTS=-server -Djava.net.preferIPv4Stack=true",
            "LAUNCHER_CONF=./conf/jetty.xml ./conf/jetty-requestlog.xml ./conf/jetty-http.xml"
        ],
        "Cmd": [
            "/bin/sh",
            "-c",
            "java   -Dnexus-work=${SONATYPE_WORK} -Dnexus-webapp-context-path=${CONTEXT_PATH}   -Xms${MIN_HEAP} -Xmx${MAX_HEAP}   -cp 'conf/:lib/*'   ${JAVA_OPTS}   org.sonatype.nexus.bootstrap.Launcher ${LAUNCHER_CONF}"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": {
            "/sonatype-work": {}
        },
        "WorkingDir": "/opt/sonatype/nexus",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": {
            "architecture": "x86_64",
            "build-date": "2024-05-29T03:00:15",
            "com.redhat.component": "ubi7-container",
            "com.redhat.license_terms": "https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI",
            "com.sonatype.license": "Apache License, Version 2.0",
            "com.sonatype.name": "Nexus Repository Manager OSS base image",
            "description": "The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.",
            "distribution-scope": "public",
            "io.buildah.version": "1.29.0",
            "io.k8s.description": "The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.",
            "io.k8s.display-name": "Red Hat Universal Base Image 7",
            "io.openshift.tags": "base rhel7",
            "maintainer": "Sonatype \u003ccloud-ops@sonatype.com\u003e",
            "name": "ubi7",
            "release": "1445",
            "summary": "Provides the latest release of the Red Hat Universal Base Image 7.",
            "url": "https://access.redhat.com/containers/#/registry.access.redhat.com/ubi7/images/7.9-1445",
            "vcs-ref": "a4e710a688a6374670ecdd56637c3f683d11cbe3",
            "vcs-type": "git",
            "vendor": "Sonatype",
            "version": "7.9"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 468857376,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/5332284e75fa84aac4432ed4dbb6e10e8be7b557c0db3e35a617f9b807c95e66/diff:/var/lib/docker/overlay2/6b98cdb698d63d7d12abe7e4cd75a8d6ea54a7e9389da2795761dfb7a7682e18/diff:/var/lib/docker/overlay2/a5e8babbbe02b618a27e0e66f92dc9dcff465b13121686d519e00892374d6027/diff:/var/lib/docker/overlay2/9dcd33bde995d850cd1d298d84aa897c76b381546638376f806ee7183940b8b5/diff",
            "MergedDir": "/var/lib/docker/overlay2/52fb9419a8376364e0c78e0156180b770d6daf9185b8fc9677b6631143710970/merged",
            "UpperDir": "/var/lib/docker/overlay2/52fb9419a8376364e0c78e0156180b770d6daf9185b8fc9677b6631143710970/diff",
            "WorkDir": "/var/lib/docker/overlay2/52fb9419a8376364e0c78e0156180b770d6daf9185b8fc9677b6631143710970/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:be1f7344519a2b9b41aa7154581b1b5503c2168abb3bc1edc99b656dca2426fe",
            "sha256:e7b9016af5e5647d9541b612040299d53a977a7d55d5ffbcfb7fbad27e7a17fc",
            "sha256:39b506e930822c7aeaffda635534697cb40db37147e1b8b751c41f6881e0e288",
            "sha256:f875002e0fcc7bd6b5302be37da520f93083ea0f699f6a0017513cba6110dd33",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-03-17T11:25:22.195175716+08:00"
    }
}

更多版本

docker.io/sonatype/nexus3:3.69.0-java17

linux/amd64 docker.io626.64MB2024-06-13 14:08
560

docker.io/sonatype/nexus3:3.69.0

linux/amd64 docker.io567.31MB2024-06-13 14:11
659

docker.io/sonatype/nexus3:3.43.0

linux/amd64 docker.io548.94MB2024-06-22 10:19
355

docker.io/sonatype/nexus3:3.70.1

linux/amd64 docker.io595.36MB2024-07-24 15:53
937

docker.io/sonatype/nexus3:3.61.0

linux/amd64 docker.io554.77MB2024-08-20 14:23
457

docker.io/sonatype/nexus3:3.38.0

linux/amd64 docker.io655.32MB2024-09-27 08:57
562

docker.io/sonatype/nexus3:3.72.0

linux/amd64 docker.io666.16MB2024-10-09 14:17
207

docker.io/sonatype/nexus3:3.73.0-alpine

linux/amd64 docker.io569.04MB2024-10-15 09:39
344

docker.io/sonatype/nexus3:3.73.0-java17-ubi

linux/amd64 docker.io637.06MB2024-10-18 17:35
266

docker.io/sonatype/nexus3:latest

linux/amd64 docker.io637.06MB2024-10-24 17:44
391

docker.io/sonatype/nexus3:3.39.0

linux/amd64 docker.io705.22MB2024-11-02 15:18
188

docker.io/sonatype/nexus3:3.73.0

linux/amd64 docker.io637.06MB2024-11-03 11:44
138

docker.io/sonatype/nexus3:3.70.3

linux/amd64 docker.io599.86MB2024-11-03 12:02
148

docker.io/sonatype/nexus3:3.74.0

linux/amd64 docker.io650.44MB2024-11-09 11:37
194

docker.io/sonatype/nexus3:3.59.0

linux/amd64 docker.io551.87MB2024-11-28 09:54
141

docker.io/sonatype/nexus3:3.68.1-java11

linux/amd64 docker.io618.71MB2025-01-09 15:26
101

docker.io/sonatype/nexus3:3.75.0

linux/amd64 docker.io635.12MB2025-01-17 15:04
96

docker.io/sonatype/nexus3:3.66.0

linux/amd64 docker.io568.70MB2025-02-03 17:10
79

docker.io/sonatype/nexus3:3.75.1

linux/amd64 docker.io635.20MB2025-02-13 17:38
71

docker.io/sonatype/nexus3:3.77.1

linux/amd64 docker.io630.48MB2025-02-14 13:47
106

docker.io/sonatype/nexus3:3.78.1

linux/amd64 docker.io625.74MB2025-03-12 17:05
84

docker.io/sonatype/nexus3:3.56.0

linux/amd64 docker.io550.29MB2025-03-13 08:20
39

docker.io/sonatype/nexus:2.15.2

linux/amd64 docker.io468.86MB2025-03-17 11:25
36

docker.io/sonatype/nexus3:3.78.2

linux/arm64 docker.io636.53MB2025-03-25 18:17
23

docker.io/sonatype/nexus3:3.78.2

linux/amd64 docker.io627.69MB2025-03-25 18:20
29