Last active
August 29, 2015 14:21
-
-
Save anderkonzen/a5a661cd795b80f73556 to your computer and use it in GitHub Desktop.
Docker snippets
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 / remove all containers | |
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) | |
# Delete all images | |
docker rmi $(docker images -q) | |
# Start a bash on a running container | |
docker exec -t -i <container_name> bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment