mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
4177b0bae0
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
|
||
---|---|---|
.. | ||
fixtures | ||
compare.go | ||
compare_test.go | ||
config.go | ||
config_test.go | ||
exec.go | ||
exec_test.go | ||
hostconfig.go | ||
hostconfig_test.go | ||
hostconfig_unix.go | ||
hostconfig_windows.go | ||
merge.go | ||
merge_test.go | ||
parse.go | ||
parse_experimental.go | ||
parse_stub.go | ||
parse_test.go | ||
parse_unix.go | ||
parse_windows.go |