Tag Archives: Failed to get DBus connection: Operation not permitted

[Solved] Failed to get D-Bus connection: Operation not permitted

After installing httpd service in docker, use the command systemctl start httpd.service , and an error is found. The error message is: failed to get D-Bus connection: operation not allowed

Solution: use the command docker run - D -- name centos7 -- privileged = true CentOS: 7/usr/SBIN/init to create a container, and then use docker exec - it centos7/bin/bash to enter the container