mirror of https://github.com/docker/cli.git
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:
parent
292e38a144
commit
d1be0bd11e
|
@ -193,6 +193,8 @@ func ValidateLink(val string) (string, error) {
|
||||||
return val, nil
|
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) {
|
func ValidatePath(val string) (string, error) {
|
||||||
var containerPath string
|
var containerPath string
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue