Bug 1187649 - Fedora:latest docker image d-bus unknown error -1
Summary: Fedora:latest docker image d-bus unknown error -1
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: docker-io
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Václav Pavlín
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-30 15:05 UTC by Joe Borg
Modified: 2015-06-03 12:18 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-03 12:18:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Joe Borg 2015-01-30 15:05:58 UTC
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.

Comment 1 Daniel Walsh 2015-03-09 17:46:11 UTC
To get this to work, you would either need to get systemd-container or systemd to run within the container.

Comment 2 Václav Pavlín 2015-03-10 09:02:12 UTC
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/

Comment 3 Daniel Walsh 2015-03-10 13:02:24 UTC
Can we remove the optin from the dbus.service script in the base container?

Comment 4 Václav Pavlín 2015-03-10 14:01:39 UTC
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)

Comment 5 Daniel Walsh 2015-03-10 16:59:01 UTC
Excellent, thanks.

Comment 6 Daniel Walsh 2015-04-14 20:00:29 UTC
Vaclav can we close this?


Note You need to log in before you can comment on or make changes to this bug.