docker的一个参数--oom-kill-disable
也可以修改容器的cgroup文件
/sys/fs/cgroup/memory/docker//memory.oom_control
[root@localhost abb7ce4c5096c07e2b6677330398112e5095ad5bcea867695b2f73151ac20d35]# pwd
/sys/fs/cgroup/memory/docker/abb7ce4c5096c07e2b6677330398112e5095ad5bcea867695b2f73151ac20d35
[root@localhost abb7ce4c5096c07e2b6677330398112e5095ad5bcea867695b2f73151ac20d35]# cat memory.oom_control
oom_kill_disable 0
under_oom 0
阅读(1476) | 评论(0) | 转发(0) |