Skip to content

Instantly share code, notes, and snippets.

@victorkristof
Last active August 29, 2015 14:26
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Useful pieces of code to use with Docker.

Docker snippets

Useful pieces of code to use with Docker.

Start boot2docker

boot2docker start
eval "$(boot2docker shellinit)"

Remove all containers

docker rm $(docker ps -aq)

Remove incompletely built images

docker images | grep none | awk '{print "docker rmi " $3;}' | sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment