-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CentOS Container with systemd = "D-Bus connection ..." #5153
Comments
Can you run |
Oh, and are you running as root, or without? |
@mheon, thanks for your awesomely fast response. I have tested both.
|
Ah, sorry, I think you misunderstood - systemd also uses |
(From looking at the logs, I don't see anything confirming we're in systemd mode, but checking the code, I don't see any indication that we actually log when we are - an oversight on our part) |
Ahhh, understood. Unfortunately setting "--log-level=debug" for systemd in centos does not give any more details. Maybeeee, this is os-related. I have tested Fedora and Debian in the meanwhile and both are "somewhat" working. |
Ahh - are you on Fedora 31? I believe there's a known issue with CentOS 7 (where systemd is too old to support cgroups v2) on top of Fedora 31 (defaults to cgroups v2) |
that may be a thing, will test it on the cgroup-v1 machine. |
ok, running
are working with cgroups1. Furthermore, fedora and debian images are working almost perfect, too ;) That was very helpful, thank. If I can add something here or support you otherwise, please feel free to give me a ping. |
Yes, sadly we can not fix this issue. RHEL7/Centos7 systemd containers can not run on a cgroup V2 machine, The systemd is too old. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Running CentOS Containers with enabled systemd not properly working on Fedora 31 as host.
Steps to reproduce the issue:
As rootless, using CentOS image (daemon)
podman run -d --systemd=true --name c7-systemd centos:7 /sbin/init
podman exec c7-systemd yum install httpd -y
podman exec c7-systemd systemctl start httpd.service
As root, using CentOS image (daemon):
podman run -d --systemd=true --name c7-systemd centos:7 /sbin/init
podman exec c7-systemd yum install httpd -y
podman exec c7-systemd systemctl start httpd.service
As rootless, using CentOS image (interactive):
podman run -it --systemd=true centos:7 /sbin/init
As root, using CentOS image (interactive):
sudo podman run -it --systemd=true centos:7 /sbin/init
Describe the results you received:
Running centos with systemd is running into oci issues, as far as i can see and seems to have improper permissions somehow.
Describe the results you expected:
Running centos with systemd should be working with the
--systemd=true
switchOutput of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):The text was updated successfully, but these errors were encountered: