Created
July 19, 2018 14:04
-
-
Save rms1000watt/e682fcd9af833c393d928cdd4a29ffd6 to your computer and use it in GitHub Desktop.
Clean up docker env to free up space
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
| #!/usr/bin/env bash | |
| docker ps -aq | xargs docker stop -f | |
| docker system prune -f | |
| docker network prune -f | |
| docker volume prune -f | |
| docker image prune -f | |
| docker images -aq | xargs docker image rm -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment