Failed to get D-Bus connection: Operation not permitted解决
docker中安装centos无法使用systemctl命令管理进程,报以下错误:Failed to get D-Bus connection: Operation not permitted原因:需要启动systemd进程需要特权解决方法: docker run -tid --privileged 镜像ID /usr/sbin/init docker run ...
·
docker中安装centos无法使用systemctl命令管理进程,报以下错误:
Failed to get D-Bus connection: Operation not permitted
原因:
- 需要启动systemd进程
- 需要特权
解决方法:
docker run -tid --privileged 镜像ID /usr/sbin/init
docker run -tid --privileged centos /usr/sbin/init
更多推荐
已为社区贡献6条内容
所有评论(0)