Skip to content

Instantly share code, notes, and snippets.

@victorkristof
Last active August 29, 2015 14:26
Show Gist options
  • Save victorkristof/cd4ffcf75970f90a0a7c to your computer and use it in GitHub Desktop.
Save victorkristof/cd4ffcf75970f90a0a7c to your computer and use it in GitHub Desktop.
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