Last active
October 27, 2016 13:51
-
-
Save mullnerz/358be2fd19c6bb4a8cae3431d1fda72d to your computer and use it in GitHub Desktop.
Docker helper scripts
This file contains hidden or 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 | |
#Delete all containers | |
docker rm $(docker ps -a -q) | |
#Delete all images | |
docker rmi $(docker images -q) |
This file contains hidden or 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 | |
# Delete all stopped containers | |
docker rm $( docker ps -q -f status=exited) | |
# Delete all dangling (unused) images | |
docker rmi $( docker images -q -f dangling=true) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment