Hi there, i had the same problem than you, so i check on the internet and i made me sad that the answer exist on Stack over flows but not on the Docker’s forum.
- open your terminal and enter :
docker inspect --format=’{{.Id}} {{.Parent}}’ $(docker images --filter since=<image_id> -q)
where you replace <image_id> by your image id (Yeah, man, obviously)
It will kill every children - then , write :
docker rmi <image_id> - if it tell you that it is link to a docker so remove it too with the command :
docker rm < docker_id>
and then go back to point 2) to end the process .
Normally it should work .
you can find the source below : https://stackoverflow.com/questions/38118791/can-t-delete-image-with-children