Переглянути джерело

systemd: 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: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 6 роки тому
батько
коміт
f30757f439
1 змінених файлів з 3 додано та 0 видалено
  1. 3 0
      contrib/init/systemd/docker.service

+ 3 - 0
contrib/init/systemd/docker.service

@@ -34,5 +34,8 @@ TasksMax=infinity
 # set delegate yes so that systemd does not reset the cgroups of docker containers
 # set delegate yes so that systemd does not reset the cgroups of docker containers
 Delegate=yes
 Delegate=yes
 
 
+# kill only the docker process, not all processes in the cgroup
+KillMode=process
+
 [Install]
 [Install]
 WantedBy=multi-user.target
 WantedBy=multi-user.target