Improve data volume container example.

Docker-DCO-1.1-Signed-off-by: Jason Livesay <ithkuil@gmail.com> (github: runvnc)
Upstream-commit: 8273cb4b9bd22ddfdd899682f08ac8327e912a28
Component: engine
This commit is contained in:
Jason Livesay
2014-07-15 06:32:44 -07:00
parent 2ff183b13e
commit 5dc6b4a870

View File

@ -98,7 +98,7 @@ it.
Let's create a new named container with a volume to share.
$ sudo docker run -d -v /dbdata --name dbdata training/postgres
$ sudo docker run -d -v /dbdata --name dbdata training/postgres echo Data-only container for postgres
You can then use the `--volumes-from` flag to mount the `/dbdata` volume in another container.