How to run a systemd-enabled container with Podman?
0
votes
1
answer
202
views
I am trying to run a systemd-enabled container using Podman, specifically with a Rocky Linux base image. While I have seen multiple references to Podman supporting systemd, I haven't been able to set it up successfully.
Here are the steps I've tried so far:
1. Pulled the rockylinux:latest image.
2. Installed systemd inside the container
yum install -y systemd systemd-libs
mkdir -p /var/log/journal
exit
3. Committed the container to a new image using:
podman commit rocky-systemd rocky-systemd:latest
4. Started the container and systemctl prints 'degraded' status!
Asked by Moha
(1 rep)
Jan 20, 2025, 10:18 PM
Last activity: Jun 25, 2025, 08:04 PM
Last activity: Jun 25, 2025, 08:04 PM