Rocky Linux 9 Docker container with systemd, useful for tests with ansible
especially with molecule
9
,latest
on main branch8
on 8 branch
- Verify if Docker is installed.
- Run on main branch:
docker build -t docker-rockylinux-systemd:9 -t docker-rockylinux-systemd:latest .
- Verify image:
docker images
docker pull eniocarboni/docker-rockylinux-systemd:latest
(or use the image you built earlier).docker run --detach --privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:rw --cgroupns=host eniocarboni/docker-rockylinux-systemd:latest
View the run container with
docker ps
Enter in the container with:
docker exec -it <container_id> bash
Kill 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)