I was trying to remove all dangling images including the images which have <none>
as repo name or tag while listing with docker images
command.
Now, if you try to remove the images , you may have seen that the docker rmi <image_id>
commands might fail due to presence of invalid docker containers which were Exited abruptly and persisted as below.
It is tedious to remove all the containers and dependent images one by. Hence, is there a good way of removing such images quickly or in automated way ?