Backdocker.io/sonatype/nexus3
docker.io

docker.io/sonatype/nexus3:latest

Sonatype Nexus Repository 3

Size
474.36 MB
Local pulls
10
Upstream pulls
200,776,911
Synced at
2026-08-15 09:20:34

China image

registry.cn-global.starbucket.com.cn/starbucket/docker.io/sonatype/nexus3:latest

Source image

docker.io/sonatype/nexus3:latest

Image info

Image ID
sha256:9bb055f5d2091497e6d52c14796c9dded7761b04b288909d588954b01804cc3f
Image tag
latest
Image size
474.36 MB
Platform
linux/arm64
Registry
docker.io
CMD
/opt/sonatype/nexus/bin/nexus run
Entrypoint
Working dir
/opt/sonatype
User
nexus
StopSignal
Created
2026-08-13T19:26:28.278Z

Exposed ports 1

  • 8081/tcp

Volumes

  • /nexus-data

Environment 8

PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SONATYPE_DIR/opt/sonatype
NEXUS_HOME/opt/sonatype/nexus
NEXUS_DATA/nexus-data
NEXUS_CONTEXT
SONATYPE_WORK/opt/sonatype/sonatype-work
DOCKER_TYPEalpine
INSTALL4J_ADD_VM_PARAMS-Djava.util.prefs.userRoot=/nexus-data/javaprefs

Labels 16

rundocker run -d --name NAME -p 8081:8081 IMAGE
urlhttps://sonatype.com
nameNexus Repository Manager
stopdocker stop NAME
vendorSonatype
release3.95.1
summaryThe Nexus Repository Manager server with universal support for popular component formats.
version3.95.1-01
maintainerSonatype <support@sonatype.com>
descriptionThe Nexus Repository Manager server with universal support for popular component formats.
com.sonatype.nameNexus Repository Manager base image
io.openshift.tagsSonatype,Nexus,Repository Manager
io.k8s.descriptionThe Nexus Repository Manager server with universal support for popular component formats.
io.k8s.display-nameNexus Repository Manager
com.sonatype.licenseApache License, Version 2.0
io.openshift.expose-services8081:8081

Pull commands

Docker
docker pull registry.cn-global.starbucket.com.cn/starbucket/docker.io/sonatype/nexus3:latest
docker tag registry.cn-global.starbucket.com.cn/starbucket/docker.io/sonatype/nexus3:latest docker.io/sonatype/nexus3:latest
Containerd
ctr images pull registry.cn-global.starbucket.com.cn/starbucket/docker.io/sonatype/nexus3:latest
ctr images tag registry.cn-global.starbucket.com.cn/starbucket/docker.io/sonatype/nexus3:latest docker.io/sonatype/nexus3:latest
YAML quick replace
sed -i 's#docker.io/sonatype/nexus3:latest#registry.cn-global.starbucket.com.cn/starbucket/docker.io/sonatype/nexus3:latest#' deployment.yaml
Global registry mirror
Docker

Write Docker daemon.json so registry-mirrors points to this site, then restart Docker

sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<'EOF'
{
  "registry-mirrors": ["https://registry.cn-global.starbucket.com.cn"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
Containerd

Write containerd certs.d hosts.toml so docker.io pulls via this site, then restart containerd

sudo mkdir -p /etc/containerd/certs.d/docker.io
sudo tee /etc/containerd/certs.d/docker.io/hosts.toml <<'EOF'
server = "https://docker.io"

[host."https://registry.cn-global.starbucket.com.cn"]
  capabilities = ["pull", "resolve"]
EOF
sudo mkdir -p /etc/containerd
if [ ! -f /etc/containerd/config.toml ]; then
  sudo containerd config default | sudo tee /etc/containerd/config.toml >/dev/null
fi
sudo sed -i 's#config_path = ""#config_path = "/etc/containerd/certs.d"#' /etc/containerd/config.toml
sudo systemctl restart containerd

Build history 20

2026-08-13 19:26:03empty layer
CMD ["/opt/sonatype/nexus/bin/nexus" "run"]
2026-08-13 19:26:03empty layer
ENV INSTALL4J_ADD_VM_PARAMS=-Djava.util.prefs.userRoot=/nexus-data/javaprefs
2026-08-13 19:26:03empty layer
USER nexus
2026-08-13 19:26:03empty layer
EXPOSE [8081/tcp]
2026-08-13 19:26:03empty layer
VOLUME [/nexus-data]
2026-08-13 19:26:03
RUN |3 NEXUS_VERSION=3.95.1-01 NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/3/sonatype-nexus-repository-3.95.1-01-assembly.zip NEXUS_DOWNLOAD_SHA256_HASH=5d61babbed71934e7e2b921e55f151d449b2c1d0b7c2fb1483547b1d06325ebf /bin/sh -c apk del gzip shadow # buildkit
2026-08-13 19:26:02
RUN |3 NEXUS_VERSION=3.95.1-01 NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/3/sonatype-nexus-repository-3.95.1-01-assembly.zip NEXUS_DOWNLOAD_SHA256_HASH=5d61babbed71934e7e2b921e55f151d449b2c1d0b7c2fb1483547b1d06325ebf /bin/sh -c echo "#!/bin/bash" >> ${SONATYPE_DIR}/start-nexus-repository-manager.sh    && echo "cd /opt/sonatype/nexus" >> ${SONATYPE_DIR}/start-nexus-repository-manager.sh    && echo "exec ./bin/nexus run" >> ${SONATYPE_DIR}/start-nexus-repository-manager.sh    && chmod a+x ${SONATYPE_DIR}/start-nexus-repository-manager.sh    && chmod a+x ${SONATYPE_DIR}/nexus/bin/nexus    && sed -e '/^nexus-context/ s:$:${NEXUS_CONTEXT}:' -i ${NEXUS_HOME}/etc/nexus-default.properties # buildkit
2026-08-13 19:26:02
RUN |3 NEXUS_VERSION=3.95.1-01 NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/3/sonatype-nexus-repository-3.95.1-01-assembly.zip NEXUS_DOWNLOAD_SHA256_HASH=5d61babbed71934e7e2b921e55f151d449b2c1d0b7c2fb1483547b1d06325ebf /bin/sh -c curl -L ${NEXUS_DOWNLOAD_URL} --output sonatype-nexus-repository-${NEXUS_VERSION}-assembly.zip     && echo "${NEXUS_DOWNLOAD_SHA256_HASH} sonatype-nexus-repository-${NEXUS_VERSION}-assembly.zip" > sonatype-nexus-repository-${NEXUS_VERSION}-assembly.zip.sha256     && sha256sum -c sonatype-nexus-repository-${NEXUS_VERSION}-assembly.zip.sha256     && unzip sonatype-nexus-repository-${NEXUS_VERSION}-assembly.zip     && rm -f sonatype-nexus-repository-${NEXUS_VERSION}-assembly.zip sonatype-nexus-repository-${NEXUS_VERSION}-assembly.zip.sha256     && mv nexus-${NEXUS_VERSION} $NEXUS_HOME     && chown -R nexus:nexus ${SONATYPE_WORK}     && mv ${SONATYPE_WORK}/nexus3 ${NEXUS_DATA}     && ln -s ${NEXUS_DATA} ${SONATYPE_WORK}/nexus3 # buildkit