Guide: Remove Docker Images, Containers, and Volumes

Here is a guide to remove docker images, containers and volumes.

Purge unused Images, Containers and Volumes

docker system prune -a

Remove an specific docker image

First, list all the images or filter by name

List all the images

docker images -a

Filter by name

docker images -a | grep image_name

Delete an image

docker rmi image_id

Force delete

docker rmi -f image_id

Sources:

 



Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.


%d bloggers like this: