Docker v23
TPA can create Docker containers and deploy a cluster to them. At present, it sets up containers to run systemd and other services as if they were ordinary VMs.
Deploying to docker containers is an easy way to test different cluster configurations. It is not meant for production use.
Synopsis
Just select the platform at configure-time:
Operating system selection
Use the standard --os Debian/Ubuntu/RedHat/SLES
configure option to
select which distribution to use for the containers. TPA will build
its own systemd-enabled images for this distribution. These images will
be named with a tpa/
prefix, e.g., tpa/redhat:8
.
Use --os-image some/image:name
to specify an existing
systemd-enabled image instead. For example, the
centos/systemd
image (based on CentOS 7) can be used in this way.
TPA does not support Debian 8 (jessie) or Ubuntu 16.04 (xenial) for Docker containers, because of bugs in the old version of systemd shipped on those distributions.
Installing Docker
We test TPA with the latest stable Docker-CE packages.
This documentation assumes that you have a working Docker installation, and are familiar with basic operations such as pulling images and creating containers.
Please consult the Docker documentation if you need help to install Docker and get started with it.
On MacOS X, you can install "Docker Desktop for Mac" and launch Docker from the application menu.
Cgroups
TPA supports Docker containers on hosts running cgroups version 1 or 2. On a host running cgroups2, instances running RHEL 7 are not supported.
If you need to use RHEL 7 instances but your host is running cgroups version 2, you can switch to cgroups version 1 as follows.
On Debian-family Linux distributions:
On RedHat-family Linux distributions: