Last active
November 6, 2019 14:40
-
-
Save xjcoan/2e5cc8bca86e4de4e4b085d342527f86 to your computer and use it in GitHub Desktop.
Kill Docker containers and remove local builds
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
| #kill active containers | |
| docker kill $(docker ps -q) | |
| # remove unused/old images | |
| docker rmi $(docker images -f dangling=true -q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment