Created
June 22, 2017 08:50
-
-
Save guillemcanal/0c965b94a6dd2333bb63c62e0fbdde04 to your computer and use it in GitHub Desktop.
Clean old docker containers
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
docker ps --filter "status=exited" | grep 'ago' | awk '{print $1}' | xargs --no-run-if-empty docker rm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment