From cb5f2c7ac37c341fde95542d7fe9248c1c63d2c4 Mon Sep 17 00:00:00 2001 From: Sebastien Boyron <30475594+dj4ngo@users.noreply.github.com> Date: Tue, 26 Sep 2017 02:42:02 +0200 Subject: [PATCH] [fix] issue #29886 - it misses oom_killer in host_config_params (#30712) so it was never passed to docker API. --- lib/ansible/modules/cloud/docker/docker_container.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/docker/docker_container.py b/lib/ansible/modules/cloud/docker/docker_container.py index 6101fc9fe76..a7538d2bf62 100644 --- a/lib/ansible/modules/cloud/docker/docker_container.py +++ b/lib/ansible/modules/cloud/docker/docker_container.py @@ -855,7 +855,7 @@ class TaskParameters(DockerBaseClass): mem_limit='memory', mem_reservation='mem_reservation', memswap_limit='memory_swap', - kernel_memory='kernel_memory' + kernel_memory='kernel_memory', ) result = dict() for key, value in update_parameters.items(): @@ -966,6 +966,7 @@ class TaskParameters(DockerBaseClass): memswap_limit='memory_swap', mem_swappiness='memory_swappiness', oom_score_adj='oom_score_adj', + oom_kill_disable='oom_killer', shm_size='shm_size', group_add='groups', devices='devices', @@ -1437,6 +1438,7 @@ class Container(DockerBaseClass): memory_reservation=host_config.get('MemoryReservation'), memory_swap=host_config.get('MemorySwap'), oom_score_adj=host_config.get('OomScoreAdj'), + oom_killer=host_config.get('OomKillDisable'), ) differences = []