nerdctl icon indicating copy to clipboard operation
nerdctl copied to clipboard

multiple IDs found with provided prefix

Open KeithTt opened this issue 2 years ago • 7 comments

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

KeithTt avatar Jun 23 '23 20:06 KeithTt

Can you try nerdctl image prune?

djdongjin avatar Jun 23 '23 20:06 djdongjin

I think the prune command is risky.

And some unused images which are not really what I want to delete.

KeithTt avatar Jun 23 '23 20:06 KeithTt

Because multi-image depends on the "image id", the image can not be deleted.

image

yankay avatar Jun 28 '23 04:06 yankay

@yankay That's the problem.

Every image ID seems has a corrosponding <none> tag image, so there are many <none> tag images.

KeithTt avatar Jun 29 '23 09:06 KeithTt

any update?

FingerLiu avatar Aug 02 '23 03:08 FingerLiu

Can you try nerdctl image prune?

<none>:<none> are still there, then there is no way to delete them.

sanzenwin avatar Mar 08 '24 09:03 sanzenwin

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

sameer-xylem avatar May 18 '24 10:05 sameer-xylem