docker运行centos提示Operation not permitted
1、在docker中运行了centos7镜像

2、进入到centos容器中使用systemctl命令时提示
systemctl Failed to get D-Bus connection: Operation not permitted

3、解决办法
在运行centos镜像的时候加上--privileged参数

4、附上docker官网命令说明截图

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:41
阅读量:89
阅读量:37
阅读量:33
阅读量:89