Christian Finel / Enable Linger

Created Wed, 02 Jul 2025 10:48:50 +0200

Some common use case with podman. Once the connection is closed, the containers stops running.

Use case

Connecting through ssh shell, starting container, container diseappears.

Solution

Enable linger so that given user always has an open session.

sudo loginctl enable-linger <username>