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