Skip to content

Commit

Permalink
Update image name to docker-nexus3 (sonatype#39)
Browse files Browse the repository at this point in the history
* Updating image name to reflect new automated build on Dockerhub

* Update docker image name for docker compose
  • Loading branch information
DarthHater committed Oct 12, 2016
1 parent 381241b commit 469ac29
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# sonatype/nexus3
# sonatype/docker-nexus3

A Dockerfile for Sonatype Nexus Repository Manager 3, based on CentOS.

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

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

To test:
Expand All @@ -19,7 +19,7 @@ To (re)build the image:
Copy the Dockerfile and do the build-

```
$ docker build --rm=true --tag=sonatype/nexus3 .
$ docker build --rm=true --tag=sonatype/docker-nexus3 .
```


Expand Down Expand Up @@ -52,7 +52,7 @@ process, which runs as UID 200.
These can be used supplied at runtime to control the JVM:

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


Expand All @@ -68,7 +68,7 @@ for additional information.

```
$ docker volume create --name nexus-data
$ docker run -d -p 8081:8081 --name nexus -v nexus-data:/nexus-data sonatype/nexus3
$ docker run -d -p 8081:8081 --name nexus -v nexus-data:/nexus-data sonatype/docker-nexus3
```

2. *Mount a host directory as the volume*. This is not portable, as it
Expand All @@ -78,5 +78,5 @@ for additional information.

```
$ 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
$ docker run -d -p 8081:8081 --name nexus -v /some/dir/nexus-data:/nexus-data sonatype/docker-nexus3
```
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "2"

services:
nexus:
image: sonatype/nexus3
image: sonatype/docker-nexus3
volumes:
- "nexus-data:/nexus-data"
ports:
Expand Down

0 comments on commit 469ac29

Please sign in to comment.