// 创建Server
docker run -it --name teamcity-server-instance \
-v /home/tc_datadir:/data/teamcity_server/datadir \
-v /home/tc_logs:/opt/teamcity/logs \
-p 81:8111 \
jetbrains/teamcity-server
// 可以创建多个agent(注意,免费只支持3个)
docker run -it -d --name=teamcity-agent-1 -e SERVER_URL="http://10.0.0.8:81" \
-v /home/tc_teamcity_agent/agent1:/data/teamcity_agent/conf \
jetbrains/teamcity-agent