Minor doc edit to add clarity around the --volume path format

Also add a comment to the ValidatePath func so devs/reviewers
know exactly what its looking for.

Signed-off-by: Doug Davis <dug@us.ibm.com>
This commit is contained in:
Doug Davis 2015-06-05 12:42:48 -07:00 committed by Tibor Vass
parent 299e90305c
commit 5683dcc183
1 changed files with 4 additions and 2 deletions

View File

@ -1122,8 +1122,10 @@ container's `/etc/hosts` entry will be automatically updated.
## VOLUME (shared filesystems) ## VOLUME (shared filesystems)
-v=[]: Create a bind mount with: [host-dir]:[container-dir]:[rw|ro]. -v=[]: Create a bind mount with: [host-dir:]container-dir[:rw|ro].
If "container-dir" is missing, then docker creates a new volume. If 'host-dir' is missing, then docker creates a new volume.
If neither 'rw' or 'ro' is specified then the volume is mounted
in read-write mode.
--volumes-from="": Mount all volumes from the given container(s) --volumes-from="": Mount all volumes from the given container(s)
The volumes commands are complex enough to have their own documentation The volumes commands are complex enough to have their own documentation