Failed to get D-Bus connection in Docker Container
24 views
Skip to first unread message
Coolman
unread,
Dec 12, 2016, 10:11:42 AM12/12/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
Hello there,
I get the error described in the title when I execute systemctl in a docker container launcher with Ansible docker module. Thus, I cannot manage services in the docker container (eg. satrt/stop/reload nginx service ...etc.)
How can I avoid this issue when launching a docker container with Andible ?
Brian Coca
unread,
Jan 12, 2017, 1:52:22 PM1/12/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
You have systemd installed in the container but it is not really managing the services (though the container pretends it does). The easy solution is removing systemd from the container to stop confusing the detection.