Last active
June 22, 2018 22:21
-
-
Save kenanhancer/eeac8455b62c91376e2616766658fc8c to your computer and use it in GitHub Desktop.
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 all Docker containers | |
docker stop $(docker ps -a -q) | |
//Kill all Docker containers | |
docker kill $(docker ps -q) | |
//Remove all Docker containers | |
docker rm $(docker ps -a -q) | |
//Remove all Docker images | |
docker rmi $(docker images -q) | |
//Search Redis Containers and get container IDs | |
docker ps -a | grep redis | awk '{print $1}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment