Can’t delete docker image with dependent child images

In some cases (like in my case) you may be trying to delete an image by specifying the image id that has multiple tags that you don’t realize exist, some of which may be used by other images. In which case, you may not want to remove the image.

If you have a case of redundant tags as described here, instead of docker rmi <image_id> use docker rmi <repo:tag> on the redundant tag you wish to remove.

Leave a Comment