Public | Automated Build

Last pushed: a year ago
Short Description
A nexus3 docker instance
Full Description


A docker image containing Sonatype Nexus Repository Manager 3 running on Alpine Linux. This is
heavily derived from the Sonatype docker-nexus3 project.

To run, binding the exposed port 8081 to the host and setting max memory.

$ docker run -d -p 8081:8081 --name nexus -e JAVA_MAX_HEAP=768m stocksoftware/nexus3

To test:

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


  • A persistent directory, /nexus-data, is used for configuration,
    logs, and storage. This directory needs to be writable by the Nexus
  • Default credentials are: admin / admin123
  • It can take some time (2-3 minutes) for the service to launch in a new container.
    This is due to the way it initializes the volume.
  • Installation of Nexus is to /opt/sonatype/nexus.
  • Three environment variables can be used to control the JVM arguments
    • JAVA_MAX_MEM, passed as -Xmx. Defaults to 1200m.
    • JAVA_MIN_MEM, passed as -Xms. Defaults to 1200m.
    • EXTRA_JAVA_OPTS. Additional options can be passed to the JVM via this variable.
    • NEXUS_CONTEXT. Context path for nexus web application if any. Defaults to empty string.
      Note it should not include the initial /.
Docker Pull Command
Source Repository