Sign inSign up

eniocarboni/docker-centos-systemd

By eniocarboni

•Updated over 4 years ago

Centos Docker container with systemd, useful for tests with ansible and molecule

Image
0

545

eniocarboni/docker-centos-systemd repository overview

⁠Centos 7/8 Docker Image with systemd

Build GPL License Donate

Centos 7/8 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-centos-systemd:centos8 -t docker-centos-systemd:latest .
  • Run on centos7 branch: docker build -t docker-centos-systemd:centos7 .
  • Verify image: docker images

⁠How to Use

  • docker pull eniocarboni/docker-centos-systemd:latest (or use the image you built earlier).
  • docker run --detach --privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro eniocarboni/docker-centos-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)

Tag summary

Content type

Image

Digest

Size

83.3 MB

Last updated

over 4 years ago

docker pull eniocarboni/docker-centos-systemd