Closed schaerfo closed 8 months ago
Does it work in --privileged mode?
works fine for me, do you have proper subuid setup? What is the output of podman unshare cat /proc/self/uid_map
?
Note 3.4.4 is a very outdated versions that we no longer support upstream. I suggest you update to the latest version.
Thanks for pointing out the subuid setup, it works now!
Issue Description
When running a rootless container with systemd (
/usr/sbin/init
) as root command, the D-Bus system bus fails to start.Steps to reproduce the issue
Steps to reproduce the issue
podman run --rm -d --name dbus-test docker.io/library/archlinux /usr/sbin/init
podman exec dbus-test systemctl status dbus
Describe the results you received
The active status is "failed". systemctl output:
Describe the results you expected
The active status is "active (running)". The systemctl output should look like this:
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Tested on an up-to-date Arch Linux installation
Additional information
I use the Arch Linux image because systemd is installed by default, which is not the case for Ubuntu.
When running a privileged container (by means of prefixing all podman invocations with
sudo
), D-Bus runs fine. In fact, this is how I generated the expected output.The issue is apparently not present on an Ubuntu 22.04 installation. The
podman info
from there is: