TeamCity On-Premises
 
Get TeamCity On-Premises

Container Wrapper

Edit pageLast modified: 18 September 2024

The Container Wrapper extension allows running a build step inside the specified Docker/LXC image. Images are pulled via docker pull or podman pull commands, depending on which container manager is installed on the agent that runs the build.

TeamCity can pull containers anonymously (if images are publicly available) or after logging into a registry (for private registries or to avoid DockerHub penalties for anonymous downloads). If you need TeamCity to authorize to a registry before pulling an image, configure the Docker Support build feature, as follows:

  1. In your project settings, select Connections from the sidebar and follow the instructions in Configuring Connections to Docker to add new Docker or Podman connections to your project.

  2. 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.

The extension is available for the following build runners: