Created
September 29, 2016 14:05
-
-
Save umarniz/5d8fe762edeae02a6ec24b26c68ec29c to your computer and use it in GitHub Desktop.
A gist to stop running containers and remove any stopped or dangling 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
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) | |
docker rmi $(docker images --quiet --filter "dangling=true") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment