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

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

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel