Created
May 21, 2018 02:52
-
-
Save yang-zhang/23efa7b5a742aa02e2aaebab1ec041bd to your computer and use it in GitHub Desktop.
How to stop and delete all docker containers and/or images
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
# Stop all running containers | |
docker stop $(docker ps -aq) | |
# 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