Created
March 25, 2015 13:50
-
-
Save halfvector/10e50b4a2462083a8f53 to your computer and use it in GitHub Desktop.
Cleanup exited Docker containers to free up disk space
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/sh | |
echo "Removing exited docker containers.." | |
docker ps -f status=exited -q | xargs docker rm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment