A minimal systemd enabled Debian 13 image
2.3K
A minimal systemd enabled Debian 13 (Trixie) Docker image for testing Ansible roles with Molecule.
NOTE: This image does NOT contain Ansible tooling, e.g. ansible-core or yamllint. Thus, the use case is as target
host for Ansible controllers or within the Molecule create/converge/test cycle.
docker pull trfore/docker-debian13-systemd
This image is built on Docker Hub automatically any time the upstream OS image is rebuilt, and any time a commit is made
or merged to the main branch. But if you need to build the image on your own locally, do the following:
git clone https://github.com/trfore/docker-debian13-systemd.gitcd into the directorydocker build --tag trfore/docker-debian13-systemd .Add the following code to your molecule scenario file, e.g. molecule/default/molecule.yml.
platforms:
- name: instance
image: trfore/docker-debian13-systemd:latest
tmpfs:
- /run
- /tmp
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: true
pre_build_image: true
Install docker
Build an image locally (see above) or pull from Docker Hub: docker pull trfore/docker-debian13-systemd:latest
On Docker with Cgroup V2 (e.g. Ubuntu 22.04), run a container from the image:
docker run -d -it --name debian13-systemd --privileged --cgroupns=host --tmpfs=/run --tmpfs=/tmp --volume=/sys/fs/cgroup:/sys/fs/cgroup:rw trfore/docker-debian13-systemd:latest
Use it, example:
docker exec -it debian13-systemd /bin/bash
Podman defaults to running containers in systemd mode, --systemd=true, and will mount the required tmpfs and cgroup
filesystem. See Podman Docs: Commands run --systemd for details.
podman run -d -it --name debian13-systemd docker.io/trfore/docker-debian13-systemd:latest
Starting with systemd 256, a taint is applied when /bin and /sbin are not symlinked/merged. This image uses
systemd 257.7-1, so calling systemd status you will see Tainted: unmerged-bin in the stdout.
See links below for details.
Content type
Image
Digest
sha256:3bb324fa1…
Size
77.1 MB
Last updated
20 days ago
docker pull trfore/docker-debian13-systemd