-
Notifications
You must be signed in to change notification settings - Fork 592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nerdctl images displays the wrong image id #3011
Comments
The image IDs are different from Docker nerdctl/cmd/nerdctl/image_list.go Line 37 in cefa8ce
|
I see. Was there a reason for that choice? The problems I see:
Specifically:
This is obviously due to the fact that the RepoDigest will be different for the very same image depending on whether it has been pushed&pulled or not. I can maybe fix it, by querying and keying images during lookup along the "docker" Id, but it is going to make things more complicated and possibly lead to some other types of discrepancies. |
containerd's image store is designed to use a single object for multi-platform image index, while Docker's image store is designed to allocate an object per platform. |
BTW
This behavior looks inconsistent and needs some remedy... |
Relevant:
nerdctl's output should be consistent with moby/moby#47526 (when the PR gets merged) |
Agreed. Overall, all of it does not look good. I will have a look at the Moby PR and see what we can do here. |
Well... And image inspect does NOT allow querying by Docker id. My "inspect" PR also respected that so far. We might need a design discussion here. |
The store is one thing, what we conceptually present to the user is another. The core issue here is: what we currently show to the user is inconsistent, and breaks reproducibility and some of our commands in certain conditions. |
Description
Whenever nerdctl displays lists of images (nerdctl images, nerdctl image list), the ID being reported are the repo sha, not the image ID.
Compare with Docker.
Steps to reproduce the issue
Describe the results you received and expected
Expected: Docker behavior - see the image ID.
Received: repo digest
What version of nerdctl are you using?
1.7.6
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
No response
The text was updated successfully, but these errors were encountered: