mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
38f8b0eb10
This is intended as a minor fix for 1.12.1 so that task creation doesn't do unexpected things when the user supplies erroneous paths. In particular, because we're currently using hostConfig.Binds to setup mounts, if a user uses an absolute path for a volume mount source, or a non-absolute path for a bind mount source, the engine will do the opposite of what the user requested since all absolute paths are treated as binds and all non-absolute paths are treated as named volumes. Fixes #25253 Signed-off-by: Brian Goff <cpuguy83@gmail.com>
7 lines
71 B
Go
7 lines
71 B
Go
// +build !windows
|
|
|
|
package container
|
|
|
|
const (
|
|
testAbsPath = "/foo"
|
|
)
|