I am trying
docker rmi c565603bc87f
Error:
Error response from daemon: conflict: unable to delete c565603bc87f (cannot be forced) - image has dependent child images
So i can't delete image even with -f flag. How to delete image then and all of its children ?
Linux and docker version:
uname -a Linux goracio-pc 4.4.0-24-generic #43-Ubuntu SMP Wed Jun 8 19:27:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
docker version Client: Version: 1.11.2 API version: 1.23 Go version: go1.5.4 Git commit: b9f10c9 Built: Wed Jun 1 22:00:43 2016 OS/Arch: linux/amd64
Server: Version: 1.11.2 API version: 1.23 Go version: go1.5.4 Git commit: b9f10c9 Built: Wed Jun 1 22:00:43 2016 OS/Arch: linux/amd64
I had this issue and none of the short answers here worked, even in the page mentioned by @tudor above. I thought I would share here how I got rid of the images. I came up with the idea that dependent images must be >= the size of the parent image, which helps identify it so we can remove it.
I listed the images in size order to see if I could spot any correlations:
What this does, is use some special formatting from docker to position the image size column first, then run a human readable sort in reverse order. Then I restore the easy-to-read columns.
Then I looked at the
<none>
containers, and matched the first one in the list with a similar size. I performed a simpledocker rmi <image:tag>
on that image and all the<none>
child images went with it.The problem image with all the child images was actually the damn
myrepo/getstarted-lab
image I used when I first started playing with docker. It was because I had created a new image from the first test image which created the chain.Hopefully that helps someone else at some point.
When i want to remove some unused image with name
"<none>"
in docker i face with the problemunable to delete a354bbc7c9b7 (cannot be forced) - image has dependent child images
.So for solving this problem:you can see that i have several Images with name javaapp:latest and different container name. So, i killed and remove all container of "javaapp:latest" container with:
Then
So i can remove all the images with name
"<none>"
goodluck
You should try to remove unnecessary images before removing the image:
After that: