TECHIES WORLD

For Techs.... Techniques.... Technologies....

CpanelLinux

How to remove untagged images from Docker

Docker server may contains untagged images which is not used by any of the containers.

This will lead to the shortage of disk space.

We can remove those tagged images without any issues.

#docker rmi -f $(docker images -a | grep "<none>" | awk "{print \$3}")

Please note that this command will not remove the untagged images if it have any reference with other used images.

That's all…

Leave a Reply