Create Docker image with systemd enabled:
echo -e "FROM ubuntu:22.04\nENV DEBIAN_FRONTEND noninteractive\nRUN apt-get update; apt-get upgrade; apt-get install -y systemd systemd-sysv; \nCMD ["/lib/systemd/systemd"]" | sudo docker build --tag debian_systemd -
Try running it:
sudo docker run -d -v /home/circleci:/home/circleci -v /sys/fs/cgroup/:/sys/fs/cgroup:ro --privileged --cap-add SYS_ADMIN --name linux_systemd_container_random debian_systemd /lib/systemd/systemd
Then check status: