Skip to content

dhoppeIT/docker-centos-systemd

Repository files navigation

CentOS image including Systemd

This Docker image can be used to test Ansible playbooks based on Molecule.

Supported tags

Branch CentOS version Docker image tag
master 8 8
7 7 7
8 8 8

Usage

Start the container

docker run \
  --cap-add SYS_ADMIN \
  --detach \
  --name centos-8 \
  --rm \
  --volume /sys/fs/cgroup:/sys/fs/cgroup:ro \
  dhoppeit/docker-centos-systemd:8

Enter the container

docker exec -it centos-8 bash

Stop the container

docker stop centos-8