Created
January 15, 2020 15:20
-
-
Save mak3r/4e8c7e5904858054f8957ab0b3c4c41c to your computer and use it in GitHub Desktop.
Stop and Remove all running 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
for i in $(docker ps | cut -f 1 -d " " | grep -v CONTAINER); do docker stop $i; docker rm $i; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment