You can use this images as base containers to run systemd services inside.
-
Run the container as a daemon
docker run -d --name systemd --tmpfs /tmp --tmpfs /run --tmpfs /run/lock -v /sys/fs/cgroup:/sys/fs/cgroup:ro arillso/$IMAGE
or if it doesn't work
docker run -d --name systemd --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro arillso/$IMAGE
-
Enter to the container
docker exec -it systemd sh
-
Remove the container
docker rm -f systemd
This project is under the MIT License. See the LICENSE file for the full license text.
(c) 2020, Arillso