https://github.com/guivin/docker-rockylinux-systemd
Rocky Linux Docker image with systemd for testing Ansible with Molecule
https://github.com/guivin/docker-rockylinux-systemd
ansible docker molecule rocky-linux
Last synced: over 1 year ago
JSON representation
Rocky Linux Docker image with systemd for testing Ansible with Molecule
- Host: GitHub
- URL: https://github.com/guivin/docker-rockylinux-systemd
- Owner: guivin
- Created: 2024-11-19T17:44:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-19T18:23:54.000Z (over 1 year ago)
- Last Synced: 2025-01-21T18:21:37.793Z (over 1 year ago)
- Topics: ansible, docker, molecule, rocky-linux
- Language: Dockerfile
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rocky Linux 9 Docker Image with systemd
[](https://github.com/eniocarboni/docker-rockylinux-systemd/actions/workflows/build.yml) [](https://www.gnu.org/licenses/) [](https://www.paypal.me/EnioCarboni)
Rocky Linux 9 Docker container with systemd, useful for tests with `ansible` especially with `molecule`
## Tags
- `9`, `latest` on [main branch](https://github.com/eniocarboni/docker-rockylinux-systemd)
- `8` on [8 branch](https://github.com/eniocarboni/docker-rockylinux-systemdi/tree/8)
## How to Build
* Verify if [Docker is installed](https://docs.docker.com/install/).
* Run on main branch: `docker build -t docker-rockylinux-systemd:9 -t docker-rockylinux-systemd:latest .`
* Verify image: `docker images`
## How to Use
* `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 bash`
Kill container with:
* `docker kill `
Remove container with:
* `docker image rm -f `
## Author
Created in 2022 by Enio Carboni
## License
GNU GENERAL PUBLIC LICENSE (see [LICENSE](LICENSE) file)