Skip to content

Add new feature method to ImagePruner that cleans up the dangling images #12395

Open
@DanielPickens

Description

Description

Add new feature method to ImagePruner that cleans up the dangling images as well (historically we have NOT) and the feature would add handler method to gracefully (without producing confusing CLI output,) i.e. handle the output of a callback that would not print out a bunch of untagged/dangling image IDs and they should be grouped into a logical operation for the relevant service

Why is this needed:

This would fix the low hanging fruit of the func (p *ImagePruner) not handling dangling images with multiple inherited operators, and the feature would handle the dangling images in func (p *ImagePruner) rather than group the untagged/dangled images in a non-logical order operation.

What would you like to be added:
Update the arguement configurations and handler logic to appropriate configurations needed to add the handler method gracefully without producing confusing cli output from misdangled and unappropriated logical operands running in the function, but rather handles them gracefully in a way that they are modeling an inheritance factor that adds simplicity and grace to the handler method, such as using frameworks as a grouping method into a logical operation, so as the images from ImagePruner are not dangling, causing any confusing output index fields:

func (p *ImagePruner) labeledLocalImages(ctx context.Context) ([]image.Summary, error) {
	imageListOpts := image.ListOptions{
		Filters: filters.NewArgs(
			projectFilter(p.project.Name),
			
                      //add method here

			filters.Arg("dangling", "false"),
		),
	}

Who is this feature for?
@docker/compose/api
@docker/api/types/image

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions