From d1be0bd11e50aff7b62e3b2327b0290e485dc369 Mon Sep 17 00:00:00 2001 From: Doug Davis Date: Fri, 5 Jun 2015 12:42:48 -0700 Subject: [PATCH] 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 --- opts/opts.go | 2 ++ 1 file changed, 2 insertions(+) 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