I posted about deleting docker containers and deleting images.Sometimes we need to clean only some images based on a condition.
I am adding to commands to delete untagged images.You can grep on any value you like.
#Deleting untagged images
docker rmi $(docker images | grep none | awk '{print $3}')
I am adding to commands to delete untagged images.You can grep on any value you like.
#Deleting untagged images
docker rmi $(docker images | grep none | awk '{print $3}')