Created
November 14, 2016 09:20
-
-
Save N1v0k/31b9a994971a7bba1aca1b2c257c3ca5 to your computer and use it in GitHub Desktop.
Cleanup Docker (remove stopped images)
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/bash | |
docker rm -v $(docker ps --filter status=exited -q 2>/dev/null) 2>/dev/null | |
docker rmi $(docker images --filter dangling=true -q 2>/dev/null) 2>/dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment