Setup Teamcity windows docker


teamcity -agent ipadress :

[2020-06-30 13:58:32,765] INFO - buildServer.AGENT.registration - Registering on server
via URL "http://localhost": AgentDetails{Name='', AgentId=null, BuildId=null, AgentOwnAddr
ess='null', AlternativeAddresses=[], Port=9090, Version='78657', PluginsVers
ion='NA', AvailableRunners=[], AvailableVcs=[], AuthorizationToken='', PingCode='YjU46lxMa
[2020-06-30 13:58:36,783] WARN - buildServer.AGENT.registration - Error while asking ser
ver for the communication protocols via URL http://localhost/app/agents/protocols. Will tr
y later: Connection refused: connect (enable debug to see stack

docker run -it -e SERVER_URL=""^
-v c:/teamcityagent:C:/BuildAgent/conf^

teamcity container ipaddress 

created with

docker run -it --name teamcity-server-instance^
-v c:/teamcity:C:/ProgramData/JetBrains/TeamCity^
-v c:/teamcity/logs:C:/teamcity/logs^
-p 8111:8111 jetbrains/teamcity-server

Howto proceed ?

Howto enable debug for a stack trace ?




1 comment
Comment actions Permalink


It is weird that your docker run command for the teamcity-agent is set for, but yet the error message indicates it is trying to register to http://localhost. 

buildServer.AGENT.registration - Registering on server
via URL "http://localhost"

May I ask what is in the contents of c:\teamcityagent? Is there a file that you could share the contents?


Please sign in to leave a comment.