Created
July 11, 2020 15:29
-
-
Save Cristuker/c1689c3642d8c0883bbdedaf7d8fe4ed to your computer and use it in GitHub Desktop.
Script to remove all files and images from your system when you need more 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
#!/bin/bash | |
trap "exit" INT | |
docker image prune --all -f | |
docker container prune -f | |
docker volume prune -f | |
docker network prune -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment