mirror of
https://github.com/clearlinux/docker.git
synced 2026-08-22 14:48:26 +00:00
Merge pull request #7116 from timthelion/relativevolumeerror
Give context for the error that occures when you try to bind mount a vol...
This commit is contained in:
+1
-1
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user