I need to create systemd cgroup on Docker Beta host

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.

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!

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

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.

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