Instead of manually installing TeamCity agents and setting up required build software, you can do the following:
Pull a required JetBrains "TeamCity Agent" Docker image. You can choose between a "minimal" (the basic agent image without any 3rd-party tools) and regular/full (bundled with multiple tools such as Git and .NET Runtime) Docker images.
Execute the docker run ... command to start a container with a TeamCity agent running within.
docker run -e SERVER_URL="<url to TeamCity server>"\
-v <path to agent config folder>:/data/teamcity_agent/conf \
jetbrains/teamcity-agent
Running TeamCity agents inside Docker container is a part of a broad TeamCity-Docker/Podman integration toolset. Refer to this documentation article for information on software requirements, supported environments, and other common aspects of this integration: Compatibility and Requirements.
tip
You can also start a TeamCity server inside a container. See instructions on this page for more information: jetbrains/teamcity-server.
note
Since 3rd-party tool vendors may not provide binaries for every OS/architecture, some images may include fewer installed components compared to the others. For instance, ARM-based images do not include Perforce CLI (p4) and Windows images ship without Mercurial.
Our website uses some cookies and records your IP address for the purposes of accessibility, security, and managing your access to the telecommunication network. You can disable data collection and cookies by changing your browser settings, but it may affect how this website functions. Learn more.
With your consent, JetBrains may also use cookies and your IP address to collect individual statistics and provide you with personalized offers and ads subject to the Privacy Notice and the Terms of Use. JetBrains may use third-party services for this purpose. You can adjust or withdraw your consent at any time by visiting the Opt-Out page.