Last active
September 8, 2021 07:13
-
-
Save scotthaleen/ce55864cfc61fb4490fc9452048a9d23 to your computer and use it in GitHub Desktop.
docker kill all
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) | |
#remove all containers | |
docker rm $(docker ps -a -q) | |
#remove all docker images | |
docker rmi $(docker images -q) | |
#remove intermediate containers, use "build --rm" to avoid them | |
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