From 7aed2130f95c22e1eb6249ffb84c1cee070cb284 Mon Sep 17 00:00:00 2001 From: Timothy Date: Sat, 19 Jul 2014 04:12:16 +0000 Subject: [PATCH] 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 (github: timthelion) --- daemon/volumes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/volumes.go b/daemon/volumes.go index 1de8ff98ac..98a1913288 100644 --- a/daemon/volumes.go +++ b/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" {