hellower / docker-rockylinux-systemd

Rocky Linux Docker container with systemd, useful for tests with ansible and molecule

Home Page:https://hub.docker.com/r/eniocarboni/docker-rockylinux-systemd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rocky Linux 9 Docker Image with systemd

Build GPL License Donate

Rocky Linux 9 Docker container with systemd, useful for tests with ansible especially with molecule

Tags

How to Build

  • 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

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 <container_id> bash

Kill container with:

  • docker kill <container_id>

Remove container with:

  • docker image rm -f <container_id>

Author

Created in 2022 by Enio Carboni

License

GNU GENERAL PUBLIC LICENSE (see LICENSE file)

About

Rocky Linux Docker container with systemd, useful for tests with ansible and molecule

https://hub.docker.com/r/eniocarboni/docker-rockylinux-systemd

License:GNU General Public License v3.0


Languages

Language:Dockerfile 100.0%