mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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>
This commit is contained in:
parent
1f3efe6776
commit
db435f526a
1 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,8 @@ LimitCORE=infinity
|
||||||
TimeoutStartSec=0
|
TimeoutStartSec=0
|
||||||
# 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
|
||||||
|
|
Loading…
Reference in a new issue