From 58283298d7480848401ef63d47a1243e044aef44 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Thu, 28 Jan 2021 15:19:43 +0900 Subject: [PATCH] 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 (cherry picked from commit 05566adf716e85cdd5b512bc5fad4689e78c56fc) Signed-off-by: Akihiro Suda --- contrib/dockerd-rootless-setuptool.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/dockerd-rootless-setuptool.sh b/contrib/dockerd-rootless-setuptool.sh index 92279b0daa..b9dcb4f925 100755 --- a/contrib/dockerd-rootless-setuptool.sh +++ b/contrib/dockerd-rootless-setuptool.sh @@ -307,6 +307,7 @@ install_systemd() { TasksMax=infinity Delegate=yes Type=simple + KillMode=mixed [Install] WantedBy=default.target