docker/volume
Sebastiaan van Stijn 7cb96ba308
Re-validate Mounts on container start
Validation of Mounts was only performed on container _creation_, not on
container _start_. As a result, if the host-path no longer existed
when the container was started, a directory was created in the given
location.

This is the wrong behavior, because when using the `Mounts` API, host paths
should never be created, and an error should be produced instead.

This patch adds a validation step on container start, and produces an
error if the host path is not found.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-12-19 11:44:29 +01:00
..
drivers Fixup some issues with plugin refcounting 2017-10-21 15:17:57 -04:00
local Simplify/fix MkdirAll usage 2017-11-27 17:32:12 -08:00
store modify log in order to be same below 2017-11-27 08:43:05 +08:00
testutils Replace vol plugin integration test w/ unit test 2017-11-15 13:13:22 -05:00
lcow_parser.go Re-validate Mounts on container start 2017-12-19 11:44:29 +01:00
linux_parser.go Re-validate Mounts on container start 2017-12-19 11:44:29 +01:00
parser.go Re-validate Mounts on container start 2017-12-19 11:44:29 +01:00
validate.go Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00
validate_test.go Re-validate Mounts on container start 2017-12-19 11:44:29 +01:00
validate_unix_test.go Add deadcode linter 2017-08-21 18:18:50 -04:00
validate_windows_test.go Add deadcode linter 2017-08-21 18:18:50 -04:00
volume.go Simplify/fix MkdirAll usage 2017-11-27 17:32:12 -08:00
volume_copy.go Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00
volume_test.go Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00
volume_unix.go Remove solaris build tag and `contrib/mkimage/solaris 2017-11-02 00:01:46 +00:00
volume_windows.go Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00
windows_parser.go Re-validate Mounts on container start 2017-12-19 11:44:29 +01:00