Browse code

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>
(cherry picked from commit 05566adf716e85cdd5b512bc5fad4689e78c56fc)
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>

Akihiro Suda authored on 2021/01/28 15:19:43
Showing 1 changed files
... ...
@@ -307,6 +307,7 @@ install_systemd() {
307 307
 			TasksMax=infinity
308 308
 			Delegate=yes
309 309
 			Type=simple
310
+			KillMode=mixed
310 311
 
311 312
 			[Install]
312 313
 			WantedBy=default.target