List of useful docker commands for cleaning up containers, images and volumes:
docker stop $(docker ps -aq // Stop all containers docker rm $(docker ps -aq) // Remove all containers docker rmi $(docker images -q) // Remove all images docker volume ls // List all volumes docker volume ls -q -f dangling=true // List all dangling volumes docker volume rm `docker volume ls -q -f dangling=true` // remove all dangling volumes
No comments:
Post a Comment
Please post any queries and comments here.