Skip to content

Instantly share code, notes, and snippets.

@nackjicholson
Last active August 1, 2017 17:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nackjicholson/4953ed00fe5fa6ba75b83561e8f00450 to your computer and use it in GitHub Desktop.
Save nackjicholson/4953ed00fe5fa6ba75b83561e8f00450 to your computer and use it in GitHub Desktop.
docker one liners to remove all stuff
# Stop all docker process
docker stop $(docker ps -a -q)
# rm all docker containers
docker rm $(docker ps -a -q)
# rm all docker images with some selection logic
docker rmi $(docker images --format "{{.Repository}}:{{.Tag}}")
# or
docker rmi $(docker images -a -q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment