Created
December 6, 2018 13:08
-
-
Save paulbrodner/4a31ed393cf5e52f46bd9c8b95d5f0ab to your computer and use it in GitHub Desktop.
clean environment of all containers removing dangling volumes as well
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
| # stop all containers | |
| docker kill $(docker ps -q) | |
| # kill all dangling volumes | |
| docker volume ls -qf dangling=true | xargs -r docker volume rm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment