Description of problem: When trying to use anything that relies on D-Bus, on Fedora:latest, you get the error: Failed to get D-Bus connection: Unknown error -1 How reproducible: 100% Steps to Reproduce: 1. Attach to Fedora:latest 2. yum install postgresql-server -y 3. systemctl start postgresql Actual results: Failed to get D-Bus connection: Unknown error -1 Expected results: Systemd starts postgres Additional info: It's not just postgres, I've tried with others.
To get this to work, you would either need to get systemd-container or systemd to run within the container.
How do you run your container? D-Bus has some problems running in current base images (due to systemd handling failure of setting of OOMScoreAdjust too sternly) but it should be fixed in Rawhide and F22. Or you can remove this option from the dbus.service unit file. I have a blog post on this here: http://vpavlin.eu/2015/02/fedora-docker-and-systemd/
Can we remove the optin from the dbus.service script in the base container?
I've actually already done that earlier: https://git.fedorahosted.org/cgit/spin-kickstarts.git/tree/fedora-docker-base.ks we just need to get new build to Docker Hub (which, afaik, Lokesh is working on)
Excellent, thanks.
Vaclav can we close this?