Skip to content

Commit

Permalink
Update to creating Docker volume now that you can use docker volume t…
Browse files Browse the repository at this point in the history
…o create a data container
  • Loading branch information
DarthHater committed Sep 30, 2016
1 parent 3566cd9 commit 255a509
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ for additional information.
this purpose. This is the recommended approach.

```
$ docker run -d --name nexus-data sonatype/nexus3 echo "data-only container for Nexus"
$ docker run -d -p 8081:8081 --name nexus --volumes-from nexus-data sonatype/nexus3
$ 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
Expand Down

0 comments on commit 255a509

Please sign in to comment.