Failed to get D-Bus connection: Operation not permitted解决
发布日期:2021-05-08 23:26:15 浏览次数:7 分类:博客文章

本文共 167 字,大约阅读时间需要 1 分钟。

docker中安装centos无法使用systemctl命令管理进程,报以下错误:

Failed to get D-Bus connection: Operation not permitted

原因:

  1. 需要启动systemd进程
  2. 需要特权

解决方法:

docker run -tdi --privileged centos init

 

上一篇:SVN服务器搭建实录
下一篇:Docker学习之4——构建NGINX镜像

发表评论

最新留言

路过,博主的博客真漂亮。。
[***.116.15.85]2025年04月06日 14时06分59秒