Skip to content

Commit

Permalink
Updating references to the non-deprecated image
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Tom committed Nov 9, 2016
1 parent cd24b0a commit 14a5413
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ 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/docker-nexus3
$ docker run -d -p 8081:8081 --name nexus sonatype/nexus3
```

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

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

## Notes
Expand Down Expand Up @@ -55,7 +55,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_MEM=768m sonatype/docker-nexus3
$ docker run -d -p 8081:8081 --name nexus -e JAVA_MAX_MEM=768m sonatype/nexus3
```

* Another environment variable can be used to control the Nexus Context Path
Expand All @@ -65,7 +65,7 @@ process, which runs as UID 200.
This can be supplied at runtime:

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

### Persistent Data
Expand All @@ -80,7 +80,7 @@ for additional information.

```
$ docker volume create --name nexus-data
$ docker run -d -p 8081:8081 --name nexus -v nexus-data:/nexus-data sonatype/docker-nexus3
$ 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
Expand All @@ -90,7 +90,7 @@ 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/docker-nexus3
$ docker run -d -p 8081:8081 --name nexus -v /some/dir/nexus-data:/nexus-data sonatype/nexus3
```

## Getting Help
Expand Down

0 comments on commit 14a5413

Please sign in to comment.