Running TPA in a Docker container v23
If you're using a system for which there are no TPA packages available, and it's difficult to run TPA after installing from source (for example, because it's not easy to obtain a working Python 3.9+ interpreter), your last resort might be to build a Docker image and run TPA inside a Docker container.
You don't need to run TPA in a Docker container to deploy to Docker containers. It's always preferable to run TPA directly if you can, even on MacOS X.
Make sure you have Docker installed and working on your system.
To clone the tpaexec source repository from Github
and build a new Docker image named
tpa/tpaexec, run the following commands:
Double-check the created image:
Create a TPA container and make your cluster configuration directories available inside the container:
You can now run commands like
tpaexec provision /clusters/speedy at the
container prompt. (When you exit the shell, the container is removed.)
If you want to provision Docker containers using TPA, you must also allow the container to access the Docker control socket on the host:
docker ps in the container to make sure that your connection to the
host Docker daemon is working.
On MacOS X, you can install Docker Desktop for Mac and launch Docker from the application menu.