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】

posted on 2019-04-08 01:16  yeyu1314  阅读(5704)  评论(0编辑  收藏  举报