mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Improve data volume container example.
Docker-DCO-1.1-Signed-off-by: Jason Livesay <ithkuil@gmail.com> (github: runvnc)
This commit is contained in:
parent
47de2e3269
commit
8273cb4b9b
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue