docker run -it --rm \
--publish 8111:8111 \
jetbrains/teamcity-server:2020.1.4 \
bin/bash
id; exit
mkdir -p $JETBRAINS_HOME/teamcity/server/{conf,datadir,logs}
#chown -R 0:0 $JETBRAINS_HOME/teamcity/server/
docker run --detach \
--volume $JETBRAINS_HOME/teamcity/server/datadir:/data/teamcity_server/datadir \
--volume $JETBRAINS_HOME/teamcity/server/logs:/opt/teamcity/logs \
--publish 8111:8111 \
--name teamcity \
jetbrains/teamcity-server:2020.1.4
docker run --detach \
--env TEAMCITY_SERVER_MEM_OPTS="-Xmx2g -XX:MaxPermSize=270m -XX:ReservedCodeCacheSize=350m" \
--volume $JETBRAINS_HOME/teamcity/server/datadir:/data/teamcity_server/datadir \
--volume $JETBRAINS_HOME/teamcity/server/logs:/opt/teamcity/logs \
--volume $JETBRAINS_HOME/teamcity/server/conf:/opt/teamcity/conf \
--env TEAMCITY_CONTEXT=/teamcity \
--publish 8111:8111 \
--name teamcity \
jetbrains/teamcity-server:2020.1.4
docker run --detach \
--env TEAMCITY_SERVER_MEM_OPTS="-Xmx2g -XX:MaxPermSize=270m -XX:ReservedCodeCacheSize=350m" \
--volume $JETBRAINS_HOME/teamcity/server/datadir:/data/teamcity_server/datadir:Z \
--volume $JETBRAINS_HOME/teamcity/server/logs:/opt/teamcity/logs:Z \
--volume $JETBRAINS_HOME/teamcity/server/conf:/opt/teamcity/conf:Z \
--env TEAMCITY_CONTEXT=/teamcity \
--publish 8111:8111 \
--name teamcity \
jetbrains/teamcity-server:2020.1.4
ssh -L 8111:localhost:8111 [email protected]
http://localhost:8111