There is a way to remove more than one images at a time, when you want to remove multiple specific images. So to do that first get Image IDs simply by listing the images then execute the below mention command
docker rmi <your-image-id> <your-image-id> ...
If I want to remove all images at once, execute this.
docker rmi $(docker images -q)
To remove All Unused Docker Objects
docker system prune
docker container prune
docker image prune
docker volume prune
docker network prune
To remove All Stopped Containers
docker container rm $(docker container ls -aq)
Leave a Reply