[lxc-users] DBUS connection from inside container using system dbus
Andrey Repin
anrdaemon at yandex.ru
Fri Mar 3 13:51:32 UTC 2017
Greetings, Adithya K!
> Hi All,
> I am usig busybox template to create container on ubuntu. I am creating
> container as non privilage. Attached is the config created.
> I am mapping var/run/duns/socket from host to container. Basically I am using host dbus.
> What I see is when I try to run and dbus program,
> dbus_bus_get(DBUS_BUS_SYSTEM, &err); call fails. Basically I am not able to get dbus bus connection.
I suppose you're running containers with subuid?
Then the answer is obvious - your container don't have permissions to access the socket.
> When I create container using privilage mode, then this issue doesn't exist.
> Any solution for this issue.
Don't use system dbus.
--
With best regards,
Andrey Repin
Friday, March 3, 2017 16:50:25
Sorry for my terrible english...
More information about the lxc-users
mailing list