Based on centos/systemd image, freshly updated
3.5K
just run for privileged container:
docker run --privileged --name example -v /sys/fs/cgroup:/sys/fs/cgroup:ro -d cleveritcz/centos-systemd:stable /usr/sbin/init
or for unprivileged container:
docker run --name example -v /sys/fs/cgroup:/sys/fs/cgroup:ro --tmpfs /run -d cleveritcz/centos-systemd:latest /usr/sbin/init
tags:
stable = privileged container
latest = unprivileged container (for testing purpose)
more information:
https://hub.docker.com/r/centos/systemd
docker pull cleveritcz/centos-systemd:latest