Skip to content

Instantly share code, notes, and snippets.

@mxlje
Last active August 29, 2015 14:20
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 mxlje/6e7665418b2723e7c123 to your computer and use it in GitHub Desktop.
Save mxlje/6e7665418b2723e7c123 to your computer and use it in GitHub Desktop.
Useful Docker commands

Remove all exited containers

sudo docker ps -a | grep Exit | cut -d ' ' -f 1 | xargs sudo docker rm

Compile with golang-builder

CenturyLinkLabs/golang-builder

docker run --rm -v $(pwd):/src -v /var/run/docker.sock:/var/run/docker.sock centurylink/golang-builder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment