Created
August 3, 2019 12:40
-
-
Save simonwep/16f628d8f4f4751ef803b856fa4b52d2 to your computer and use it in GitHub Desktop.
Stops all docker container, removes all container and images
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 Running containers | |
docker stop $(docker ps -a -q) | |
# Remove container and images | |
docker rm $(docker ps -a -q) | |
docker image rm $(docker image ls -a -q) | |
# See if everything got removed | |
docker image ls | |
docker container ls |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment