Clear docker images and containers
docker rm $(docker ps -aq) - remove all containers
docker rmi $(docker images -q) - remove all images
docker stop $(docker ps -a -q) - stop all Docker containers
Written by RobinCK
Related protips
2 Responses
You can use docker system prune to remove all data.
over 1 year ago
·
And docker volume prune
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Docker
Authors
Related Tags
#docker
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#