Last active
August 14, 2019 22:27
-
-
Save brydavis/c04606dbba2dcee2ac59b86e21d98747 to your computer and use it in GitHub Desktop.
Removes 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
# Destroy all your images and containers | |
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) | |
docker rmi $(docker images -q) | |
# Deleting those images that are referenced in repositories | |
docker rmi $(docker images -q) --force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment