mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
rootless: set systemd KillMode to mixed
Now `systemctl --user stop docker` completes just with in 1 or 2 seconds. Fix issue 41944 ("Docker rootless does not exit properly if containers are running") See systemd.kill(5) https://www.freedesktop.org/software/systemd/man/systemd.kill.html Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
parent
e64651075d
commit
05566adf71
1 changed files with 1 additions and 0 deletions
|
@ -307,6 +307,7 @@ install_systemd() {
|
|||
TasksMax=infinity
|
||||
Delegate=yes
|
||||
Type=simple
|
||||
KillMode=mixed
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
|
Loading…
Reference in a new issue