Replies: 3 comments
-
Yes. Just define a quadlet for the user and activate it. You might need to enable linger.. You could run a systemd based container with a quadlet defining a rootless container. |
Beta Was this translation helpful? Give feedback.
-
I would suggest to start with |
Beta Was this translation helpful? Give feedback.
-
My image is simple: FROM fedora:latest
RUN dnf install systemd systemd-networkd Run it will print many service failed start, I searched around and found someone use systemd in docker without any issue, and he's using I thought it was systemd problem, but it isn't. After some test, I finally written this #!/bin/bash
shopt -s nullglob
echo "$container_uuid" >/etc/machine-id
echo "$container_uuid" >/run/machine-id
rm -rf /usr/lib/systemd/system/local-fs.target.wants /usr/lib/systemd/system/graphical.target.wants /usr/lib/systemd/system/multi-user.target.wants
rm -rf /etc/systemd/system/*.target.wants
cd /usr/lib/systemd/system/sysinit.target.wants
rm -f ./*.mount ./*.path ./systemd-firstboot.service ./systemd-machine-id-commit.service ./systemd-sysusers.service ./systemd-tpm2-* ./systemd-update-*
capsh --print
exec /usr/lib/systemd/systemd --system --log-target=console --show-status=yes --log-color=yes --crash-reboot=no |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is this possible? (note again, it's about running systemd inside container, not run podman as a service)
Beta Was this translation helpful? Give feedback.
All reactions