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
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
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.


----------
Brian Coca
Reply all
Reply to author
Forward
0 new messages