-
-
Save mingliangfeng/2bedc4ad304a0912251ec61cb87e519c to your computer and use it in GitHub Desktop.
kill all docker containers at once...
This file contains 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
# list all container IDs | |
docker ps -aq | |
# stop all containers | |
docker stop $(docker ps -q) | |
# remove all containers | |
docker rm $(docker ps -aq) | |
# remove all images | |
docker rmi $(docker images -q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment