Failed to get D-Bus connection: Operation not permitted

Posted yeyu1314

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Failed to get D-Bus connection: Operation not permitted相关的知识,希望对你有一定的参考价值。

解决“Failed to get D-Bus connection: Operation not permitted”很简单

启动容器时,要加上--privileged -e "container=docker" ,并且最后面的命令改为/usr/sbin/init

技术图片

如果是已经创建好的容器,那你得重新把容器打包成镜像再启动了。把容器打包成镜像用的是docker commit这个,具体用法参考前面。

【end】

以上是关于Failed to get D-Bus connection: Operation not permitted的主要内容,如果未能解决你的问题,请参考以下文章

Failed to get D-Bus connection: Operation not permitted

在 fedora 容器中 systemctl 给出 Failed to get D-Bus connection

Docker中启动mysql报错: Failed to get D-Bus connection

Failed to get D-Bus connection: Operation not permitted

centos7.3 Failed to get D-Bus connection

Failed to get D-Bus connection: Operation not permitted