Created
December 12, 2017 11:46
-
-
Save wwerner/ee7c6519a38d66fa4f09f63cafe4b438 to your computer and use it in GitHub Desktop.
Docker: Stop all containers, remove all containers and 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
#!/bin/bash | |
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) | |
docker rmi $(docker images -q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment