فهرست منبع

fixes #17734, clear message for host volumes not starting with /

Signed-off-by: Muayyad Alsadi <alsadi@gmail.com>
Muayyad Alsadi 8 سال پیش
والد
کامیت
a8180eeaed
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      volume/local/local.go

+ 1 - 1
volume/local/local.go

@@ -268,7 +268,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")}
 		return validationError{fmt.Errorf("volume name is too short, names should be at least two alphanumeric characters")}
 	}
 	}
 	if !volumeNameRegex.MatchString(name) {
 	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
 	return nil
 }
 }