Popular linux distributions with systemd. Superb for use with Docker 🐋
These are the base source of the lab container images used in the Dive Into Ansible Lab
This container image is designed to be used independently with the likes of /bin/bash
or, as I have done with the Dive Into Ansible Lab as a base image in a multistage build (see the 'See Also' section below)
Up until recently (ubuntu_23.04), it was possible to build an image with a custom systemd that used the legacy hierarchy. This as expected, appears to be deprecated from ubuntu 23.04 onwards. That said, hopefully by the point that this or even when 24.04 becomes an adopted standard, the requirement to fall back on the _legacy images (with the progression to linux distributions that supports cgroups v2 natively) will demise.
See the individual branches for sources. The image can be executed directly (with for example, /bin/bash
) or, can be used as a systemd base for other projects. Execution examples are in the README.md
Convenient GitHub links for where I make use of these source images -
- Customised with sshd and ttyd to mimic virtual machine distributions - spurin/container-systemd-sshd-ttyd
-
@bothaf and @dazzla76 - Thanks for your support in general and in the testing of these images
-
@AkihiroSuda - Thanks for your efforts on Github and the feedback you provided to my question regarding /sys/fs/cgroup. In testing, the clarification of the use of /sys/fs/cgroup helped a lot and this bridge cgroups v1 and v2 compatibility. Also appreciate your docker-entrypoint.sh script that I've made use of in this project 🚀