Failed to get D-Bus connection: Operation not permitted

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

 

上一篇:mlx90614红外传感器


下一篇:spring cloud bus 扩展消息总线方式