rancher-sandbox / rancher-desktop

Container Management and Kubernetes on the Desktop
https://rancherdesktop.io
Apache License 2.0
6.04k stars 285 forks source link

User not able to delete rancher/rancher image from the UI #7826

Open IsaSih opened 4 days ago

IsaSih commented 4 days ago

Actual Behavior

The Delete option is missing from both the 3-dot option menu for the rancher/rancher image and the bulk actions in the docker images table when this image is selected.

Steps to Reproduce

1-Start Rancher Desktop 2-Pull the rancher/rancher image 3-From the UI, go to the images tab 4-Try to delete the pulled image from the UI

Result

The delete action is not available in the UI for the rancher/rancher image.

https://github.com/user-attachments/assets/c6292225-fd1d-4afa-ac83-ad6489acafd2

Expected Behavior

User should be able to delete rancher/rancher image from the UI

Additional Information

No response

Rancher Desktop Version

1.16.0

Rancher Desktop K8s Version

1.30.6

Which container engine are you using?

moby (docker cli)

What operating system are you using?

macOS

Operating System / Build Version

macOS Sequoia 15.0

What CPU architecture are you using?

arm64 (Apple Silicon)

Linux only: what package format did you use to install Rancher Desktop?

None

Windows User Only

No response

jandubois commented 3 days ago

This happens because all images starting with rancher/ are protected from deletion, just in case they are part of the images needed for running k3s.

https://github.com/rancher-sandbox/rancher-desktop/blob/bb616b8d7ff0dc44517ecaab46e5a50ba4fb3840/pkg/rancher-desktop/pages/Images.vue#L54-L69

IsaSih commented 2 days ago

So maybe converting this issue in an improvement request? I'd like to have the flexibility to remove unused rancher/rancher images