Created
November 15, 2016 03:04
-
-
Save beeman/aca41f3ebd2bf5efbd9d7fef09eac54d to your computer and use it in GitHub Desktop.
Remove all from Docker
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
# Stop all containers | |
docker stop `docker ps -qa` | |
# Remove all containers | |
docker rm `docker ps -qa` | |
# Remove all images | |
docker rmi -f `docker images -qa ` | |
# Remove all volumes | |
docker volume rm $(docker volume ls -qf) | |
# Remove all networks | |
docker network rm `docker network ls -q` | |
# Your installation should now be all fresh and clean. | |
# The following commands should not output any items: | |
# docker ps -a | |
# docker images -a | |
# docker volume ls | |
# The following command show only show the default networks: | |
# docker network ls | |
Thanks
<3
This is missing:
docker builder prune
** The backtick syntax should be replaced with $()
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks!!!