diff --git a/opts/opts.go b/opts/opts.go index 8dcc8c5988..e40c1a334a 100644 --- a/opts/opts.go +++ b/opts/opts.go @@ -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