-->

DEVOPSZONES

  • Recent blogs

    CenntOS/RHEL 7: Failed to get D-Bus connection: Operation not permitted

    CenntOS/RHEL 7: Failed to get D-Bus connection: Operation not permitted

    Docker


    While access the systemd commands within a docker container we usally get this issue.
    root@5898d9006d87:/# systemctl status grafana-server
    Failed to get D-Bus connection: Unknown error -1
    root@5898d9006d87:/#

    To work around this issue, Please do the following:

    Run the container in privileged mode
    docker run --privileged --name grafana -d grafana /sbin/init

    Login to the container.
    docker exec -ti grafana bash

    Now run the command again. Cheers

    2 comments:

    1. Wow Great ... It helped me. Really Thanks :)

      ReplyDelete
    2. thanks it is great. after long time i fix the problem. reference is very helpfull

      ReplyDelete