From db435f526ac5703276ad1add28188c0c8c6e4c2a Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Thu, 16 Jun 2016 11:46:04 -0700 Subject: [PATCH] Set systemd KillMode Change the kill mode to process so that systemd does not kill container processes when the daemon is shutdown but only the docker daemon Signed-off-by: Michael Crosby --- contrib/init/systemd/docker.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/init/systemd/docker.service b/contrib/init/systemd/docker.service index 9b0ce63ebc..92d72467e2 100644 --- a/contrib/init/systemd/docker.service +++ b/contrib/init/systemd/docker.service @@ -20,6 +20,8 @@ LimitCORE=infinity TimeoutStartSec=0 # set delegate yes so that systemd does not reset the cgroups of docker containers Delegate=yes +# kill only the docker process, not all processes in the cgroup +KillMode=process [Install] WantedBy=multi-user.target