Last active
June 1, 2017 07:51
-
-
Save nirodg/737da87f8b79c67246d7a1178057e2f0 to your computer and use it in GitHub Desktop.
Docker CleanUp - Removes containers and volumes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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