Failed to get D-Bus connection: Operation not permitted
docker中使用命令systemctl 命令时会报错,错误信息:Failed to get D-Bus connection: Operation not permitted。原因:在centos7的docker容器里面不能用service启动服务。报这个错的原因是dbus-daemon没能启动。systemctl并不是不能使用。将CMD或者entrypoint设置为/usr/sbin/...
原创
2020-04-23 16:59:32 ·
4489 阅读 ·
0 评论