Created
October 5, 2017 15:43
-
-
Save arose13/d5d76092298ceabf86012ce79f2ef6ca to your computer and use it in GitHub Desktop.
Docker Cleanup Commands
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
# Kill all running containers | |
sudo docker kill $(sudo docker ps -q) | |
# Delete all stopped containers (This is the step that frees the most disk space) | |
sudo docker rm $(sudo docker ps -a -q) | |
# Delete all docker images | |
sudo docker rmi $(sudo docker images -q) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment