mirror of
https://github.com/containers/podman.git
synced 2025-05-21 09:05:56 +08:00
troubleshooting.md: document lingering mode
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user