sonatype/nexus-repository-manager

Nexus Repository Manager

Sonatype
Updated
3.26.1-ubi-23.26.1-ubi-2
Overview

Features

Release categoryGenerally Available
Exposed ports8081/tcp
Privilege modeUnprivileged
Usernexus

Download this image

Description

Sonatype Nexus Repository Manager

Red Hat Enterprise Linux Docker image for Sonatype Nexus Repository Manager.

Running

To run, binding the exposed port 8081 to the host.

$ docker run -d -p 8081:8081 --name nexus sonatype/nexus3

To test:

$ curl -u admin:admin123 http://localhost:8081/service/metrics/ping

Notes

  • Default credentials are: admin / admin123
  • It can take some time (2-3 minutes) for the service to launch in a
    new container. You can tail the log to determine once Nexus is ready:

$ docker logs -f nexus

  • Installation of Nexus is to /opt/sonatype/nexus.
  • A persistent directory, /nexus-data, is used for configuration,
    logs, and storage. This directory needs to be writable by the Nexus
    process, which runs as UID 200.
  • There is an environment variable that can used to pass JVM arguments to the startup script
    This can be supplied at runtime:
    $ docker run -d -p 8081:8081 --name nexus -e INSTALL4J_ADD_VM_PARAMS="-Xms2g -Xmx2g -XX:MaxDirectMemorySize=3g -Djava.util.prefs.userRoot=/some-other-dir" sonatype/nexus3
    Of particular note, -Djava.util.prefs.userRoot=/some-other-dir can be set to a persistent path, which will maintain
    the installed Nexus Repository License if the container is restarted.
    • INSTALL4J_ADD_VM_PARAMS, passed to the Install4J startup script. Defaults to -Xms1200m -Xmx1200m -XX:MaxDirectMemorySize=2g -Djava.util.prefs.userRoot=${NEXUS_DATA}/javaprefs.
  • Another environment variable can be used to control the Nexus Context Path
    This can be supplied at runtime:
    $ docker run -d -p 8081:8081 --name nexus -e NEXUS_CONTEXT=nexus sonatype/nexus3
    • NEXUS_CONTEXT, defaults to /

 

Persistant Data

There are two general approaches to handling persistent storage requirements
with Docker. See Managing Data in Containers
for additional information.

  1. Use a data volume. Since data volumes are persistent
    until no containers use them, a volume can be created specifically for
    this purpose. This is the recommended approach.
    $ docker volume create --name nexus-data
    $ docker run -d -p 8081:8081 --name nexus -v nexus-data:/nexus-data sonatype/nexus3
  2. Mount a host directory as the volume. This is not portable, as it
    relies on the directory existing with correct permissions on the host.
    However it can be useful in certain situations where this volume needs
    to be assigned to certain specific underlying storage.
    $ mkdir /some/dir/nexus-data && chown -R 200 /some/dir/nexus-data
    $ docker run -d -p 8081:8081 --name nexus -v /some/dir/nexus-data:/nexus-data sonatype/nexus3

 

Products using this container

Type

Standalone image

Stream

Single-stream

Size

603.2 MB

Digest

Category

Application DeliveryDeveloper ToolsPolicy Enforcement
SecuritySpecifications

Image specifications

The following information was extracted from the dockerfile and other sources.

Canonical image IDNexus Repository Manager
SummaryThe Nexus Repository Manager server with universal support for popular component formats.
DescriptionThe Nexus Repository Manager server with universal support for popular component formats.
ProviderSonatype
MaintainerSonatype <support@sonatype.com>
Source locationhttps://github.com/sonatype/docker-nexus3
Repository nameNexus Repository Manager
Image version3.26.1-02
Architectureamd64
Exposed ports"8081/tcp"
Usernexus
Working directoryNEXUS_/opt/sonatype/nexus

Audit & compliance status

The following evidence verifies the image's security and build process compliance with mandated internal standards.

Security audit date1/10/2026, 5:57:41 PM
Container certification  Certified
PackagesGet this image
Terms & conditionsBefore downloading or using this Container, you must agree to the Red Hat subscription agreement located at redhat.com/licenses. If you do not agree with these terms, do not download or use the Container. If you have an existing Red Hat Enterprise Agreement (or other negotiated agreement with Red Hat) with terms that govern subscription services associated with Containers, then your existing agreement will control.

Registry tokens

Use a registry service account token to authenticate your container client. This allows you to pull images without using your personal Red Hat credentials, which is recommended for CI/CD pipelines and automated deployments.

Using Podman login


Image identifiers

Red Hat login

Use the following instructions to get images from a Red Hat container registry using your Red Hat login.

Using Podman login


Image identifiers

Red Hat logoLinkedInYouTubeFacebookTwitter

Platforms

Products & services

Try, buy, sell

Help

About Red Hat Ecosystem Catalog

The Red Hat Ecosystem Catalog is the official source for discovering and learning more about the Red Hat Ecosystem of both Red Hat and certified third-party products and services.

We’re the world’s leading provider of enterprise open source solutions—including Linux, cloud, container, and Kubernetes. We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2025 Red Hat, LLC
Feedback