docker: remove unused images

Actively using docker you can face problems out of free disk space because docker images take up too much disk space. You can clean unused and previous versions of your’s rebuilded images.

Take a look all images stored on your disk

$ docker images

To delete docker images by their ID

$ docker rmi f4c991a4033f

Delete all unused images that not in dependencies in any of your containers.

$ docker image prune -a

 

Leave a Reply

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