This post tells you how to delete a docker image with dependent images.
docker rmi a12345678901, an error occurs as below.
Error response from daemon: conflict: unable to delete a12345678901 (cannot be forced) - image has dependent child images
Even if I add the flag
-f, it also doesn’t work.
There are some dependent images so you cannot delete the image.
Remove unnecessary images.
docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
And then delete the image.
docker rmi a12345678901