How to run containers using systemctl as user even when user is logged out

In order to enable executing process with logged out shell

loginctl enable-linger user

Move to user systemd dir

cd ~/.config/systemd/user/

Generate systemd files for container

podman generate systemd –restart-policy=always -t 1 –name container_name –files