Majority of containers do not contain systemd inside. There is a long story about that. Containers that do contain systemd commonly called init containers.
Just an example
“
The Universal Base Image Init is designed to run an init system as PID 1 for running multi-services inside a container. “
You have to use Docker images that have systemd. I’m using these:
or on Docker Hub:
There are examples on how to use images with molecule in GitHub README.md. You can also check the DockerFiles to figure out how systemd enabled images are made… if you want to create your custom ones.
Great shout out to Anton Melekhin - antmelekhin - for creating these.