Skip to content

Instantly share code, notes, and snippets.

@nirodg
Last active June 1, 2017 07:51
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 nirodg/737da87f8b79c67246d7a1178057e2f0 to your computer and use it in GitHub Desktop.
Save nirodg/737da87f8b79c67246d7a1178057e2f0 to your computer and use it in GitHub Desktop.
Docker CleanUp - Removes containers and volumes
#/bin/bash
# Stopping all containers
docker stop $(docker ps -a -q)
# Removing all containers
docker rm $(docker ps -a -q)
# Removing all volumes
docker volume rm `docker volume ls -q -f dangling=true`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment