From f400e852c7d1704ed42b11682e1804fb17739f6f Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Tue, 15 Oct 2019 15:03:40 +0200 Subject: troubleshooting.md: document lingering mode Signed-off-by: Giuseppe Scrivano --- troubleshooting.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'troubleshooting.md') diff --git a/troubleshooting.md b/troubleshooting.md index 6fed719f7..c4e577645 100644 --- a/troubleshooting.md +++ b/troubleshooting.md @@ -410,3 +410,22 @@ You'll need to either: * configure the host to use cgroups v1 * update the image to use an updated version of systemd. + +### 17) rootless containers exit once the user session exits + + +You need to set lingering mode through loginctl to prevent user processes to be killed once +the user session completed. + +#### Symptom + +Once the user logs out all the containers exit. + +#### Solution +You'll need to either: + +* loginctl enable-linger $UID + +or as root if your user has not enough privileges. + +* sudo loginctl enable-linger $UID -- cgit v1.2.3-54-g00ecf