Setup Teamcity windows docker

Answered

teamcity -agent ipadress : 172.24.252.141

[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=[172.24.252.141], Port=9090, Version='78657', PluginsVers
ion='NA', AvailableRunners=[], AvailableVcs=[], AuthorizationToken='', PingCode='YjU46lxMa
EjYP3qXLCTJVHAn9Ku3L055'}
[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: java.net.ConnectException: Connection refused: connect (enable debug to see stack
trace)

docker run -it -e SERVER_URL="http://172.24.240.24:8111"^
-v c:/teamcityagent:C:/BuildAgent/conf^
jetbrains/teamcity-agent

teamcity container ipaddress  172.24.240.24 

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

Hi,

It is weird that your docker run command for the teamcity-agent is set for http://172.24.240.24:8111, 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 buildAgent.properties file that you could share the contents?

0

Please sign in to leave a comment.