Created
January 27, 2020 04:17
-
-
Save wingkwong/797790e235aaa22c58653f76f0268563 to your computer and use it in GitHub Desktop.
A script to remove 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
#!/bin/bash | |
docker rm -vf $(docker ps -a -q) | |
docker rmi -f $(docker images -a -q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment