Skip to content

Instantly share code, notes, and snippets.

@michaellihs
Created November 17, 2016 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaellihs/fd744bbc88d30e400e2c0b312e43a3f1 to your computer and use it in GitHub Desktop.
Save michaellihs/fd744bbc88d30e400e2c0b312e43a3f1 to your computer and use it in GitHub Desktop.
GoCD Cheatsheet

GoCD Cheatsheet

Running GoCD in Docker

docker run -p 8153:8153 -p 8154:815 -it gocd/gocd-server
docker run --name gocd_agent -it gocd/gocd-agent 

--> this show a Stacktrace for the Agent
--> execute the following command:

docker exec gocd_agent /sbin/ip route|awk '/default/ { print  $3}'

--> this will print the IP of the docker host, fill this into
--> CTRL+C to stop the agent container

docker run -it --name gocd_agent -e GO_SERVER=172.17.0.1 gocd/gocd-agent

Ports for GoCD server:

  • UI will listen on 8153
  • Agents will connect to 8154
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment