Skip to content

dhoppeIT/docker-ubuntu-systemd

Repository files navigation

Ubuntu image including Systemd

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

Supported tags

Branch Ubuntu version Docker image tag
master 20.04 20.04
18.04 18.04 18.04
20.04 20.04 20.04

Usage

Start the container

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

Enter the container

docker exec -it ubuntu-20.04 bash

Stop the container

docker stop ubuntu-20.04