Docker Community Forums

Share and learn in the Docker community.

I need to create systemd cgroup on Docker Beta host

beta

(Petri Sirkkala) #1

Expected behavior

I would want to be able to run https://github.com/solita/docker-systemd on Docker Beta, but alas I have no idea how to modify the hosts cgroups.

Actual behavior

Information

Steps to reproduce the behavior

I am afraid this is really a lost cause, but I would still like to be able to use Docker Beta.
There really is little documentation about reaching the xhyve virtual machine that is running the Docker service in Docker Beta. That would be warmly welcome.


(Petri Sirkkala) #2

And as always in the darkest moment the light arises! I found this dear topic: https://forums.docker.com/t/how-to-make-changes-to-xhyve-host/11820. Great!


(Dave Tucker) #3

The changes won’t persist over update or reboot though… I’ve opened issue (#3126) on our bug tracker for this…


(Justin Cormack) #4

Hi, this image docker run -d -v /sys/fs/cgroup:/sys/fs/cgroup:ro maci0/systemd /usr/lib/systemd/systemd works fine for me and does not need cgroup creation or privileged operation, so I would recommend using this or a similar config.


(Dknecht2) #5

I run the same command and systemd fails with “systemctl
Failed to get D-Bus connection: Unknown error -1” unless I add privileged.