Created
July 11, 2018 00:07
-
-
Save ifnull/66b3cbc200e8fc2f3d21bdd65a926c69 to your computer and use it in GitHub Desktop.
ECS Docker Cleanup
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
date; | |
docker ps -q --filter "status=exited" | xargs --no-run-if-empty docker rm; | |
docker volume ls -qf dangling=true | xargs -r docker volume rm; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment