Sfoglia il codice sorgente

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 anni fa
parent
commit
db435f526a
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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