Created
December 20, 2021 16:19
-
-
Save g4b0/7f00b8b3c8bd95a817a80603ebc35048 to your computer and use it in GitHub Desktop.
A script for cleaning your docker environment
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 | |
| # stop running containers | |
| # remove them quickly | |
| # | |
| # run docker system prune to free space | |
| function dfu() { | |
| docker stop $(docker ps -a -q); docker rm $(docker ps -a -q) | |
| } | |
| dfu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment