Skip to content

Removal of a Toolbox image from which are derived Toolbox containers made a one-step operation #1808

Description

@Ricky-Tigg

Problem description

Hello. Removal of a Toolbox image from which are derived Toolbox containers is a two-step operation.

'toolbox rm <container_ID> && toolbox rmi <image_ID>'

Attempt as a one-step operation

$ toolbox rmi <image_ID>
Error: image <image_ID> has dependent children

goal: Avoiding the unnecessary print of an error message by offering the possibility to make the removal a one-step operation.

Solution description

Removal of a Toolbox image from which are derived Toolbox containers made a one-step operation.

Suggested interactive output:

$ toolbox rmi <image_ID>
Image <image_ID> has dependent children that must be removed first in order to remove the image.
##IDs of containers derived from the image:##
##<List of containers>##
Do you want to remove these containers? [N/y]: <answer>

Alternatives I have considered
Such removal in Podman is a two-step operation as well. I wish it was an alternative.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions