瀏覽代碼

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 <crosbymichael@gmail.com>
Michael Crosby 9 年之前
父節點
當前提交
db435f526a
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      contrib/init/systemd/docker.service

+ 2 - 0
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