Created
June 1, 2017 16:04
-
-
Save kohsuke/6801d72b269a446a2bc36a7d9869e35f to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
# delete files occupied by the finished containers | |
sudo docker rm $(sudo docker ps -a | grep Exit| cut -f1 -d' ') | |
# delete dangling images | |
sudo docker rmi $(sudo docker images -f "dangling=true" -q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment