1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/runconfig
Antonio Murdaca 4177b0bae0 Add hostConfig check before starting a container
It may happen that host system settings are changed while the daemon is running.
This will cause errors at libcontainer level when starting a container with a
particular hostConfig (e.g. hostConfig with memory swappiness but the memory
cgroup was umounted).
This patch adds an hostConfig check on container start to prevent the daemon
from even calling libcontainer with the wrong configuration as we're already
doing on container's creation).

Signed-off-by: Antonio Murdaca <runcom@linux.com>
(cherry picked from commit 0d2628cdf1)
2015-08-06 15:46:10 -07:00
..
fixtures Refactor test and add coverage to runconfig 2015-07-01 10:16:36 +02:00
compare.go Remove PortSpecs from Config 2015-05-29 22:38:09 +02:00
compare_test.go Remove panic in nat package on invalid hostport 2015-07-17 13:02:54 -07:00
config.go Lint fixes on runconfig 2015-07-27 21:23:15 +02:00
config_test.go Refactor test and add coverage to runconfig 2015-07-01 10:16:36 +02:00
exec.go Lint fixes on runconfig 2015-07-27 21:23:15 +02:00
exec_test.go Add minor vet fixes 2015-07-12 19:16:38 +02:00
hostconfig.go Add MemorySwappiness comment back. 2015-07-29 16:41:46 -07:00
hostconfig_test.go Add minor vet fixes 2015-07-12 19:16:38 +02:00
hostconfig_unix.go Lint fixes on runconfig 2015-07-27 21:23:15 +02:00
hostconfig_windows.go Lint fixes on runconfig 2015-07-27 21:23:15 +02:00
merge.go Lint fixes on runconfig 2015-07-27 21:23:15 +02:00
merge_test.go Remove panic in nat package on invalid hostport 2015-07-17 13:02:54 -07:00
parse.go Add hostConfig check before starting a container 2015-08-06 15:46:10 -07:00
parse_experimental.go Promote volume drivers from experimental to master. 2015-07-21 09:32:44 -07:00
parse_stub.go Mark --volume-driver as experimental 2015-05-21 20:34:17 -07:00
parse_test.go Lint fixes on runconfig 2015-07-27 21:23:15 +02:00
parse_unix.go Lint fixes on runconfig 2015-07-27 21:23:15 +02:00
parse_windows.go Fix Windows CI fail due to GH13866 and patch up tests 2015-07-09 10:09:45 -07:00