/docker-centos7

Docker centos 7 systemd image

Primary LanguageDockerfileMIT LicenseMIT

Centos 7 systemd

Github workflow status release release-datelicense license pre-commit

Centos 7 docker base image. Built to be able to test playbooks and Ansible roles as if you were on an operating system with systemd.

Tags

  • latest: the latest stable release.
  • X.Y.Z: the exact version associated with the tag X.Y.Z.
  • develop: the version currently being tested.
  • main: the latest beta build.
  • nightly: the latest nightly build.

How to Build

This image is built on GitHub each day, and any time a commit is push or a release is made. But if you need to build the image on your own locally, do the following:

  1. Install Docker.
  2. cd into this directory.
  3. Run docker build -t localhost/centos7:test .

How to Use

  1. Install Docker.
  2. Pull this image from GitHub Container Registry: docker pull ghcr.io/pandemonium1986/centos7:nightly (or use the image you built earlier, e.g. localhost/centos7:test).
  3. Run a container from the image: docker run --rm --detach --privileged --tty --tmpfs /tmp --tmpfs /run --name centos7-pdm-ghcr ghcr.io/pandemonium1986/centos7:nightly.
  4. Exec cmd or interactive shell: docker exec centos7-pdm-ghcr cat /etc/os-release or docker exec --tty --interactive centos7-pdm-ghcr bash

Author Information