Running TPA in a Docker container v23
If you are 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.6+ interpreter), your last resort may be to build a Docker image and run TPA inside a Docker container.
Please note that you do not need to run TPA in a Docker container in order to deploy to Docker containers. It's always preferable to run TPA directly if you can (even on MacOS X).
Quickstart
You must have Docker installed and working on your system already.
Run the following commands to clone the tpaexec source repository from Github
and build a new Docker image named tpa/tpaexec
:
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 will be 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:
Run docker ps
within the container to make sure that your connection to the
host Docker daemon is working.
Installing Docker
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.
- On this page
- Quickstart
- Installing Docker