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

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

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

 Failed to get D-Bus connection: Operation not permitted 随笔

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

【end】

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄