浏览代码

Give context for the error that occures when you try to bind mount a volume with a relative path

Docker-DCO-1.1-Signed-off-by: Timothy <timothyhobbs@seznam.cz> (github: timthelion)
Timothy 11 年之前
父节点
当前提交
7aed2130f9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      daemon/volumes.go

+ 1 - 1
daemon/volumes.go

@@ -232,7 +232,7 @@ func initializeVolume(container *Container, volPath string, binds map[string]Bin
 		destination = bindMap.SrcPath
 
 		if !filepath.IsAbs(destination) {
-			return fmt.Errorf("%s must be an absolute path", destination)
+			return fmt.Errorf("cannot bind mount volume: %s volume paths must be absolute.", destination)
 		}
 
 		if strings.ToLower(bindMap.Mode) == "rw" {