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

Delete Action deletes all tags with the same Image ID #2673

Closed
tuckerrc opened this issue May 29, 2023 · 0 comments · Fixed by #3837
Closed

Delete Action deletes all tags with the same Image ID #2673

tuckerrc opened this issue May 29, 2023 · 0 comments · Fixed by #3837
Assignees
Labels
area/dashboard 📊 Concern the dashboard from Container Desktop good first issue 🧁 Good for newcomers kind/bug 🐞 Something isn't working

Comments

@tuckerrc
Copy link
Contributor

Bug description

When I have a single image with multiple tags but the same Image ID clicking the Delete Action button deletes all the images with the same Image ID

image

Note: all the images have the same Image ID == 4821cabd3279

Clicking the Delete action for a single image deletes all of them.

From the CLI if the image has multiple tags podman image rm <image tag> only removes the tag

$ podman image rm quay.io/tuckerrc/hello
Untagged: quay.io/tuckerrc/hello:latest

If the image is the last tag for the image podman image rm deletes the image too

$ podman image ls
REPOSITORY            TAG         IMAGE ID      CREATED       SIZE
quay.io/podman/hello  latest      4821cabd3279  20 hours ago  142 kB

$ podman image rm quay.io/podman/hello  
Untagged: quay.io/podman/hello:latest
Deleted: 4821cabd3279b5ac0b557e94002cbcffe92b5249cfd94f31e1bf8be36d9577ad

Operating system

macOS Ventura 13.3.1 (Apple silicon)

Version

next (development version)

Steps to reproduce

  1. Create or Pull an image
    • podman pull quay.io/podman/hello
  2. From the CLI (or Podman-Desktop if feat: Add rename image button #2588 is complete) add a new tag
    • podman image tag <current-tag> <new-tag>
  3. In Podman Desktop click the "Delete Action" button for one of the listed images
  4. See both images have been deleted

Relevant log output

No response

Additional context

No response

@tuckerrc tuckerrc added the kind/bug 🐞 Something isn't working label May 29, 2023
@tuckerrc tuckerrc changed the title Deleting an Image that has multiple tags deletes all tags with the same Image ID Delete Action deletes all tags with the same Image ID May 29, 2023
@benoitf benoitf added area/dashboard 📊 Concern the dashboard from Container Desktop good first issue 🧁 Good for newcomers and removed status/need-triage labels May 31, 2023
dgolovin added a commit to dgolovin/podman-desktop that referenced this issue Sep 8, 2023
This fix:
* switches to use name:tag to delete image
* run delete commands as a chain to avoid conflicts when
  deleting different tags of the same image

Fix containers#2673

Signed-off-by: Denis Golovin <dgolovin@redhat.com>
dgolovin added a commit to dgolovin/podman-desktop that referenced this issue Sep 11, 2023
This fix:
* switches to use name:tag to delete image
* run delete commands as a chain to avoid conflicts when
  deleting different tags of the same image

Fix containers#2673

Signed-off-by: Denis Golovin <dgolovin@redhat.com>
dgolovin added a commit to dgolovin/podman-desktop that referenced this issue Sep 12, 2023
This fix:
* switches to use name:tag to delete image
* run delete commands as a chain to avoid conflicts when
  deleting different tags of the same image

Fix containers#2673

Signed-off-by: Denis Golovin <dgolovin@redhat.com>
dgolovin added a commit to dgolovin/podman-desktop that referenced this issue Sep 12, 2023
This fix:
* switches to use name:tag to delete image
* run delete commands as a chain to avoid conflicts when
  deleting different tags of the same image

Fix containers#2673

Signed-off-by: Denis Golovin <dgolovin@redhat.com>
dgolovin added a commit to dgolovin/podman-desktop that referenced this issue Sep 14, 2023
This fix:
* switches to use name:tag to delete image
* run delete commands as a chain to avoid conflicts when
  deleting different tags of the same image

Fix containers#2673

Signed-off-by: Denis Golovin <dgolovin@redhat.com>
dgolovin added a commit to dgolovin/podman-desktop that referenced this issue Sep 14, 2023
This fix:
* switches to use name:tag to delete image
* run delete commands as a chain to avoid conflicts when
  deleting different tags of the same image

Fix containers#2673

Signed-off-by: Denis Golovin <dgolovin@redhat.com>
dgolovin added a commit to dgolovin/podman-desktop that referenced this issue Sep 20, 2023
This fix:
* switches to use name:tag to delete image
* run delete commands as a chain to avoid conflicts when
  deleting different tags of the same image

Fix containers#2673

Signed-off-by: Denis Golovin <dgolovin@redhat.com>
dgolovin added a commit that referenced this issue Sep 20, 2023
This fix:
* switches to use name:tag to delete image
* uses image id if name is '<none>'
* run delete commands as a chain when deleting multiple images to avoid conflicts when
  deleting different tags of the same image

Fixes #2673

Signed-off-by: Denis Golovin <dgolovin@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dashboard 📊 Concern the dashboard from Container Desktop good first issue 🧁 Good for newcomers kind/bug 🐞 Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants