解决: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进入容器

你可能感兴趣的:(解决:Failed to get D-Bus connection: Operation not permitted)