nerdctl icon indicating copy to clipboard operation
nerdctl copied to clipboard

cannot force multi same id images

Open bobsongplus opened this issue 3 years ago • 0 comments

Description

when there are multiple identical image ids, the image id cannot be forcibly deleted. like below: image

delete images forcibly using command: ./nerdctl rmi -f d09eb50879e8 , execution will be interrupted with the following error message: ERRO[0000] multiple IDs found with provided prefix: d09eb50879e8

I think already using -f shouldn't check multiple IDs。

Steps to reproduce the issue

  1. pull a image, like nginx
  2. retag this image
  3. nerdctl rmi -f

Describe the results you received and expected

expected forcibly delete this images, should't check multi image ids

What version of nerdctl are you using?

nerdctl version 0.22.0

Are you using a variant of nerdctl? (e.g., Rancher Desktop)

No response

Host information

No response

bobsongplus avatar Jul 29 '22 02:07 bobsongplus