解決:Failed to get D-Bus connection: Operation not permitted


 

  • docker中安裝完httpd服務后,使用命令systemctl start httpd.service,發現報錯,錯誤信息:Failed to get D-Bus connection: Operation not permitted
  • 解決方法:使用命令docker run -d --name centos7 --privileged=true centos:7 /usr/sbin/init創建容器,然后使用docker exec -it centos7 /bin/bash進入容器


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM