Created
February 8, 2017 07:18
-
-
Save denisbrodbeck/dd1ed4a97de77250c5601a1328352e64 to your computer and use it in GitHub Desktop.
docker: remove all images and containers
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
#!/bin/bash | |
# Delete all containers | |
docker rm $(docker ps -a -q) | |
# Delete all images | |
docker rmi $(docker images -q) | |
# Some images might still exist | |
# check with: docker images | |
# delete with: docker rmi --force 0482a5fd046c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment