Last active
August 29, 2015 14:05
-
-
Save muminoff/dc10dfa283a09444c40a to your computer and use it in GitHub Desktop.
Docker remove all containers/images
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
# docker withoud sudo (re-login makes effect) | |
sudo gpasswd -a __user__ docker | |
# stop all containers | |
docker stop $(docker ps -a -q) | |
# remove all containers | |
docker rm $(docker ps -a -q) | |
# remove all images | |
docker rmi $(docker images -q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment