An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Rocky Linux 9 Docker Image with systemd

[![Build](https://github.com/eniocarboni/docker-rockylinux-systemd/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/eniocarboni/docker-rockylinux-systemd/actions/workflows/build.yml) [![GPL License](https://img.shields.io/badge/license-GPL-blue.svg)](https://www.gnu.org/licenses/) [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](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)