Created
December 1, 2021 10:44
-
-
Save skounis/ec03ea69f99687c6e191b1186f7509d6 to your computer and use it in GitHub Desktop.
Stop / Kill all the docker containers
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
# | |
# Source | |
# https://typeofnan.dev/how-to-stop-all-docker-containers/ | |
# | |
# Stop | |
docker stop $(docker ps -q) | |
# Kill | |
docker kill $(docker ps -q) | |
# Remove | |
docker rm $(docker ps -a -q) | |
# Remove images | |
docker rmi $(docker images -q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment