TeamCity On-Premises
 
Get TeamCity On-Premises

Docker

Edit pageLast modified: 21 January 2025

The Docker build runner allows launching the build, push, and tag Docker commands inside your build.

If you need to push the newly built image to a registry, you can authorize to a Docker or Podman registry by configuring the Docker Support build feature, as follows:

  1. Navigate to Administration | <Your Project> to access project settings.

  2. Open the Connections settings tab.

  3. Add a new Docker or Podman connectionto your project.

  4. In your build configuration settings, follow the instructions in Docker Support to configure the Docker Support build feature, adding the connections created in the previous step.

If a Dockerfile is present in your VCS repository and you create a TeamCity project based on this repository, TeamCity will autodetect it and offer creating a build step using this runner.