Error while running rootless container as systemd service for no login user: Failed to connect to bus: No such file or directory
Issue
-
Configuring the container to run as systemd service, refer the below article RUNNING CONTAINERS AS SYSTEMD SERVICES WITH PODMAN RHEL 7 and RUNNING CONTAINERS AS SYSTEMD SERVICES WITH PODMAN RHEL 8.
-
While trying to run a container as a systemd service with an unprivileged nologin user or in an rootless environment with nologin user fails due to the lack of login shell with the below error.
Failed to connect to bus: No such file or directory
Environment
- Red Hat Enterprise Linux (RHEL) 7
- Red Hat Enterprise Linux (RHEL) 8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.