解决:Failed to get D-Bus connection: Operation not permitted

 

  • docker中安装完httpd服务后,使用命令systemctl start httpd.service,发现报错,错误信息:Failed to get D-Bus connection: Operation not permitted
  • 解决方法:使用命令docker run -d --name centos7 --privileged=true centos:7 /usr/sbin/init创建容器,然后使用docker exec -it centos7 /bin/bash进入容器
原文地址:https://www.cnblogs.com/ivy-zheng/p/15421038.html