Created
September 25, 2018 18:01
-
-
Save toashd/c0c3918cac81f8feec399e1159ef099e to your computer and use it in GitHub Desktop.
Dokku – Running out of space with many deployments.
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
# check space | |
df -h | |
# delete all non-running container | |
docker ps -a | grep 'Exit' | awk '{print $1}' | xargs docker rm | |
# delete unused images | |
docker images | grep '<none>' | awk '{print $3}' | xargs docker rmi | |
# delete specific images | |
docker rmi app/example |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment