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

libimage: image removal: add hint to external containers #1111

Merged
merged 1 commit into from
Aug 4, 2022

Conversation

vrothberg
Copy link
Member

Trying to remove an image that is in use by containers is a confusing
experience for users who may not be aware of "external" containers which
are not displayed in podman ps by default (see containers/podman/issues/15006).

Add some context to the error from containers/storage to guide the user
into listing external containers and force-removing the image.

Signed-off-by: Valentin Rothberg vrothberg@redhat.com

Trying to remove an image that is in use by containers is a confusing
experience for users who may not be aware of "external" containers which
are not displayed in `podman ps` by default (see containers/podman/issues/15006).

Add some context to the error from containers/storage to guide the user
into listing external containers and force-removing the image.

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 4, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vrothberg

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Aug 4, 2022
@vrothberg
Copy link
Member Author

For now a draft as it won't pass Podman CI which is checking for the unwrapped error message.

@vrothberg vrothberg marked this pull request as ready for review August 4, 2022 13:31
@vrothberg
Copy link
Member Author

Got a local PR ready for Podman passing system tests.

@containers/podman-maintainers PTAL

Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vrothberg vrothberg mentioned this pull request Aug 4, 2022
@baude
Copy link
Member

baude commented Aug 4, 2022

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Aug 4, 2022
@openshift-ci openshift-ci bot merged commit dc97077 into containers:main Aug 4, 2022
@vrothberg vrothberg deleted the fix-podman-15006 branch August 4, 2022 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants