mirror of
https://gitee.com/kennylee/docker.git
synced 2024-11-30 02:48:27 +08:00
.. | ||
docker-compose.yml | ||
README.md |
sonatype/nexus3
A Dockerfile for Sonatype Nexus Repository Manager 3, based on CentOS. The git repo is https://github.com/sonatype/docker-nexus3.
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
To (re)build the image, copy the Dockerfile and do the build:
$ docker build --rm=true --tag=sonatype/nexus3 .
Notes
Default credentials are: admin / admin123