Last active
August 29, 2015 14:15
-
-
Save drgarcia1986/1ba4a355c64577e01955 to your computer and use it in GitHub Desktop.
Stop and remove all Docker containers and images
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
# Stop all docker containers | |
sudo docker stop $(sudo docker ps -a -q) | |
# Delete all docker containers | |
sudo docker rm -f $(sudo docker ps -a -q) | |
# Delete all docker images | |
sudo docker rmi -f $(sudo docker images -q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment