platforms:
- name: ${OS_NAME}-instance
image: fanchthesystem/${OS_NAME}-with-systemd:latest
override_command: false
privileged: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
tmpfs:
- /tmp
- /run
docker run --privileged --name ${OS_NAME}-with-systemd -d -v /sys/fs/cgroup:/sys/fs/cgroup:ro fanchthesystem/${OS_NAME}-with-systemd
docker exec -it ${OS_NAME}-with-systemd systemctl status
OS_NAME can be 'ubuntu', 'centos' or 'debian' --privileged may or may not be needed ...