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>
Upstream-commit: d1be0bd11e
Component: cli
This commit is contained in:
Doug Davis
2015-06-05 12:42:48 -07:00
committed by Vincent Demeester
parent 74a2061e32
commit 82d0cb3f4b

View File

@ -193,6 +193,8 @@ func ValidateLink(val string) (string, error) {
return val, nil
}
// ValidatePath will make sure 'val' is in the form:
// [host-dir:]container-path[:rw|ro] - but doesn't validate the mode part
func ValidatePath(val string) (string, error) {
var containerPath string