Last active
September 19, 2019 02:05
-
-
Save 4lberto/82da4ae9b194ce8ca1c9fae6c534d9e1 to your computer and use it in GitHub Desktop.
Docker: stop & remove all 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
#List all containers (only IDs) | |
docker ps -aq | |
#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