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
compare.go
compare_test.go
config.go Lint fixes on runconfig 2015-07-27 21:23:15 +02:00
config_test.go
exec.go Lint fixes on runconfig 2015-07-27 21:23:15 +02:00
exec_test.go
hostconfig.go Add MemorySwappiness comment back. 2015-07-29 16:41:46 -07:00
hostconfig_test.go
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
parse.go Add hostConfig check before starting a container 2015-08-06 15:46:10 -07:00
parse_experimental.go
parse_stub.go
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