无法获得D-Bus连接:不允许操作 [英] Failed to get D-Bus connection: Operation not permitted

查看:883
本文介绍了无法获得D-Bus连接:不允许操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在docker centos7映像上安装ambari 2.6,但是在ambari设置步骤中,恰好在初始化postgresql db时,我收到此错误:

I'm trying to install ambari 2.6 on a docker centos7 image but in the the ambari setup step and exactly while intializing the postgresql db I receive this error:


无法获得D-Bus连接:不允许操作

Failed to get D-Bus connection: Operation not permitted

每次我都遇到此错误

我尝试了网络中的每个解决方案,但仍无济于事。

I tried every solution in the net but nothing worked yet.

有人知道如何解决这个问题吗?

Does any one have an idea how to resolve this ?

预先感谢您

推荐答案

使用此命令


docker run -d -it-特权 IMAGE / usr / sbin / init

docker run -d -it --privileged IMAGE /usr/sbin/init

并访问容器中的根


systemctl启动httpd.service

systemctl start httpd.service

这应该有效!

这篇关于无法获得D-Bus连接:不允许操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆