nerdctl
nerdctl copied to clipboard
multiple IDs found with provided prefix
What is the problem you're trying to solve
It is stange that there are a good many <none> name and <none> tag images listed when exec image ls.
And it is frustrating that they can't be deleted, they have a named tag which is been using by a running container.
Describe the solution you'd like
Maybe these <none> images should not be displayed or be removed duplicate by default.
Additional context
No response
Can you try nerdctl image prune?
I think the prune command is risky.
And some unused images which are not really what I want to delete.
Because multi-image depends on the "image id", the image can not be deleted.
@yankay That's the problem.
Every image ID seems has a corrosponding <none> tag image, so there are many <none> tag images.
any update?
Can you try
nerdctl image prune?
<none>:<none> are still there, then there is no way to delete them.
using force flag -f worked for me.
nerdctl -n k8s.io rmi -f <image_id or list_of_ids> .
Note: In my case I had the node drained and removed from cluster aldready. not sure how well it works without removing from cluster