/docker-ubuntu2204

Docker Ubuntu 2204 systemd image

Primary LanguageDockerfileMIT LicenseMIT

Ubuntu 22.04 systemd

Github workflow status release release-datelicense license pre-commit

Ubuntu 22.04 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/ubuntu2204:test .

How to Use

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

Author Information