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 Vincent Demeester
parent 292e38a144
commit d1be0bd11e
1 changed files with 2 additions and 0 deletions

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