Backdocker.io/sonatype/nexus3
docker.io

docker.io/sonatype/nexus3:3.91.0

Sonatype Nexus Repository 3

Size
417.20 MB
Local pulls
10
Upstream pulls
200,776,911
Synced at
2026-08-15 09:23:19

China image

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

Source image

docker.io/sonatype/nexus3:3.91.0

Image info

Image ID
sha256:43e4bf3338c344781e88c0e04c045e7366df0a5b751e12e90b8464510982ee27
Image tag
3.91.0
Image size
417.20 MB
Platform
linux/arm64
Registry
docker.io
CMD
/opt/sonatype/nexus/bin/nexus run
Entrypoint
Working dir
/opt/sonatype
User
nexus
StopSignal
Created
2026-04-07T16:57:51.452Z

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.91.0
summaryThe Nexus Repository Manager server with universal support for popular component formats.
version3.91.0-07
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:3.91.0
docker tag registry.cn-global.starbucket.com.cn/starbucket/docker.io/sonatype/nexus3:3.91.0 docker.io/sonatype/nexus3:3.91.0
Containerd
ctr images pull registry.cn-global.starbucket.com.cn/starbucket/docker.io/sonatype/nexus3:3.91.0
ctr images tag registry.cn-global.starbucket.com.cn/starbucket/docker.io/sonatype/nexus3:3.91.0 docker.io/sonatype/nexus3:3.91.0
YAML quick replace
sed -i 's#docker.io/sonatype/nexus3:3.91.0#registry.cn-global.starbucket.com.cn/starbucket/docker.io/sonatype/nexus3:3.91.0#' 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-04-07 16:57:31empty layer
CMD ["/opt/sonatype/nexus/bin/nexus" "run"]
2026-04-07 16:57:31empty layer
ENV INSTALL4J_ADD_VM_PARAMS=-Djava.util.prefs.userRoot=/nexus-data/javaprefs
2026-04-07 16:57:31empty layer
USER nexus
2026-04-07 16:57:31empty layer
EXPOSE [8081/tcp]
2026-04-07 16:57:31empty layer
VOLUME [/nexus-data]
2026-04-07 16:57:31
RUN |3 NEXUS_VERSION=3.91.0-07 NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/3/sonatype-nexus-repository-3.91.0-07-assembly.zip NEXUS_DOWNLOAD_SHA256_HASH=69267aa02492761fc7d9bdc61d01ab878374dbf08c5c54d1fa37c6c9f6044ca6 /bin/sh -c apk del gzip shadow # buildkit
2026-04-07 16:57:30
RUN |3 NEXUS_VERSION=3.91.0-07 NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/3/sonatype-nexus-repository-3.91.0-07-assembly.zip NEXUS_DOWNLOAD_SHA256_HASH=69267aa02492761fc7d9bdc61d01ab878374dbf08c5c54d1fa37c6c9f6044ca6 /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-04-07 16:57:30
RUN |3 NEXUS_VERSION=3.91.0-07 NEXUS_DOWNLOAD_URL=https://download.sonatype.com/nexus/3/sonatype-nexus-repository-3.91.0-07-assembly.zip NEXUS_DOWNLOAD_SHA256_HASH=69267aa02492761fc7d9bdc61d01ab878374dbf08c5c54d1fa37c6c9f6044ca6 /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