From d3ae1d7bd61dca944b4e6aacfa8eb150ccfc13bf Mon Sep 17 00:00:00 2001 From: Muayyad Alsadi Date: Wed, 2 Nov 2016 12:18:48 +0200 Subject: [PATCH] fixes #17734, clear message for host volumes not starting with / Signed-off-by: Muayyad Alsadi --- volume/local/local.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/volume/local/local.go b/volume/local/local.go index 68ed26a726..9c77e51348 100644 --- a/volume/local/local.go +++ b/volume/local/local.go @@ -269,7 +269,7 @@ func (r *Root) validateName(name string) error { return validationError{fmt.Errorf("volume name is too short, names should be at least two alphanumeric characters")} } if !volumeNameRegex.MatchString(name) { - return validationError{fmt.Errorf("%q includes invalid characters for a local volume name, only %q are allowed", name, utils.RestrictedNameChars)} + return validationError{fmt.Errorf("%q includes invalid characters for a local volume name, only %q are allowed. If you intented to pass host directory use absolute path starting with /", name, utils.RestrictedNameChars)} } return nil }