Created
June 19, 2016 21:59
-
-
Save SystemZ/91fa9775328e0fedb355540074ac359c to your computer and use it in GitHub Desktop.
Clear all docker images and containers
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 | |
#https://techoverflow.net/blog/2013/10/22/docker-remove-all-images-and-containers/ | |
docker rm $(docker ps -a -q) | |
docker rmi $(docker images -q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment