Last active
June 1, 2017 10:17
-
-
Save mkjsix/6bb518691aaae17d04c2ed41065986f0 to your computer and use it in GitHub Desktop.
Delete all Docker images and containers
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
# Delete every non-running Docker container | |
docker rm -f $(docker ps -a -q) | |
# Delete every Docker image for non-running containers | |
docker rmi -f $(docker images -q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment