[lxc-users] DBUS connection from inside container using system dbus

Stéphane Graber stgraber at ubuntu.com
Thu Mar 2 16:47:28 UTC 2017


On Thu, Mar 02, 2017 at 03:46:10PM +0530, Adithya K wrote:
> 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.
> 
>  When I create container using privilage mode, then this issue doesn't
> exist.
> 
>  Any solution for this issue.
> 
> Thanks,
> Adithya

Sounds like it's just a permission problem, the container will be coming
as uid 100000 (or possibly some higher value) which may not be able to
access that socket path on the host or which may be rejected by the
daemon afterwards.


-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20170302/52c55900/attachment.sig>


More information about the lxc-users mailing list