sockets - systemctl from inside docker container fails with D-Bus connection error -


i have setup docker container based on opensuse 12, installed additional files , copied installer binaries container. far fine.

from inside running image of container need run aforementioned setup program needs have uuid.socket , running - uuid.socket in turn needs systemctl work correctly , causes error this:

hxehost:/usr/sap/srcfiles # systemctl failed d-bus connection: unknown error -1 

i started docker container this:

docker run -h hxehost -i -t f3096b0aa964 /bin/bash 

which, according postings should start machine container opposed application container.

can tell me i'm doing wrong here??? how systemctl work inside docker container?

i tried starte container command, according linked hints should do, no avail

docker run --privileged --rm -ti -e 'container=docker' -h hxehost --network="bridge" --tmpfs /run --tmpfs /tmp -v /sys/fs/cgroup:/sys/fs/cgroup:ro siliconchris/hxe:v0.0.2 /bin/bash 

if this, systemctl still gives exact same error.

if start /sbin/init instead of /bin/bash, can see quite lot of services started (some, wicked, login , module, fail). in end, container presents me login. after login, can execute systemctl , shows services respective states.

now next question is: is approach feasible @ all???

best regards,

chris

you may find repo image @ sap hana express edition inside docker

most current linux systems depend on systemd running, , systemctl send requests it. applications did install when replaced systemctl binary script interprets start/stop/status/enable commands. benefit, not need anymore complicated startup-commands resulting image systemd mapped container. may you? please have @ docker-systemctl-replacement.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -