Skip to content
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 rmi can be broken by using tag names with repo short sha #3016

Open
apostasie opened this issue May 16, 2024 · 2 comments · Fixed by #3017
Open

nerdctl rmi can be broken by using tag names with repo short sha #3016

apostasie opened this issue May 16, 2024 · 2 comments · Fixed by #3017
Labels
bug Something isn't working

Comments

@apostasie
Copy link
Contributor

apostasie commented May 16, 2024

Description

When an image uses a tag that is a short version of another (unrelated) image repo sha, nerdctl rmi will break down.

This is another aspect of one of the many issues with our current image lookup implementation.

Steps to reproduce the issue

nerdctl pull busybox
nerdctl pull alpine
shortid="$(nerdctl inspect busybox | jq -rc .[0].RepoDigests[0])"
shortid="${shortid##*:}"
shortid="${shortid:0:8}"
nerdctl tag alpine "$shortid"
nerdctl rmi "$shortid"

Describe the results you received and expected

FATA[0000] 1 errors:
multiple IDs found with provided prefix: 5eef5ed3

Should have just worked and removed the tagged version of alpine.

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

@apostasie apostasie added the kind/unconfirmed-bug-claim Unconfirmed bug claim label May 16, 2024
@yankay yankay added bug Something isn't working and removed kind/unconfirmed-bug-claim Unconfirmed bug claim labels May 20, 2024
@apostasie
Copy link
Contributor Author

Can we reopen?
#3017 was not meant to fix this (yet).

@apostasie
Copy link
Contributor Author

@yankay @AkihiroSuda can we reopen this?

@AkihiroSuda AkihiroSuda reopened this Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants