docker / roadmap

Welcome to the Public Roadmap for All Things Docker! We welcome your ideas.
https://github.com/orgs/docker/projects/51
Creative Commons Zero v1.0 Universal
1.74k stars 261 forks source link

Add `Force to Remove` Button for Cascade Deletion of Images and Associated Containers #694

Open onurkanbakirci opened 3 months ago

onurkanbakirci commented 3 months ago

Tell us about your request I would like to request the addition of a Force to Remove button in Docker Desktop. This feature would allow users to delete an image even if it is currently being used by one or more containers. When this button is used, Docker Desktop would automatically remove the image as well as all associated containers that are using that image.

Which service(s) is this request for? All Docker Desktop apps (Windows, macOS, Linux)

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard? Currently, when attempting to delete an image that is in use by a container, Docker Desktop throws an error and prevents the deletion. This requires users to manually stop and remove each container associated with the image before being able to delete the image. This process can be cumbersome and time-consuming, especially when managing multiple containers or images. The proposed Force to Remove button would simplify and expedite this process by handling the removal of both the image and its dependent containers in one action.

Below is a possible location to add Force to Remove or Cascade Delete button.

Screenshot 2024-07-28 at 15 33 14 Screenshot 2024-07-28 at 15 35 01