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

Failed to get D-Bus connection: Operation not permitted

原因:

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

解决方法:

docker run -tdi --privileged centos init 

 

相关文章:

  • 2021-10-30
  • 2021-12-08
  • 2022-12-23
  • 2021-05-04
  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
  • 2021-09-09
猜你喜欢
  • 2021-08-08
  • 2021-06-26
  • 2021-06-18
  • 2021-07-10
相关资源
相似解决方案