After starting TeamCity with the JetBrains docker-compose sample, no build agents appeared in the server UI even though the agent containers were running fine. The default buildAgent.properties points the agent at the local server on port 8111, so each agent tried to reach a TeamCity server on itself instead of the actual server container. Changing the URL to the host IP or the published port did not help either.