Centos Docker container with systemd, useful for tests with ansible and molecule
545
Centos 7/8 Docker container with systemd, useful for tests with ansible especially with molecule
centos8, latest on main branchcentos7 on centos7 branchdocker build -t docker-centos-systemd:centos8 -t docker-centos-systemd:latest .docker build -t docker-centos-systemd:centos7 .docker imagesdocker pull eniocarboni/docker-centos-systemd:latest (or use the image you built earlier).docker run --detach --privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro eniocarboni/docker-centos-systemd:latestView the run container with
docker psEnter in the container with:
docker exec -it <container_id> bashKill container with:
docker kill <container_id>Remove container with:
docker image rm -f <container_id>Created in 2022 by Enio Carboni
GNU GENERAL PUBLIC LICENSE (see LICENSE file)
Content type
Image
Digest
Size
83.3 MB
Last updated
over 4 years ago
docker pull eniocarboni/docker-centos-systemd