CenntOS/RHEL 7: Failed to get D-Bus connection: Operation not permitted
CenntOS/RHEL 7: Failed to get D-Bus connection: Operation not permitted
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:/#
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
Wow Great ... It helped me. Really Thanks :)
ReplyDeletethanks it is great. after long time i fix the problem. reference is very helpfull
ReplyDelete