Skip to content

podman image prune -- implement all flag#2205

Merged
openshift-merge-robot merged 1 commit intocontainers:masterfrom
baude:prunelikedocker
Jan 30, 2019
Merged

podman image prune -- implement all flag#2205
openshift-merge-robot merged 1 commit intocontainers:masterfrom
baude:prunelikedocker

Conversation

@baude
Copy link
Member

@baude baude commented Jan 22, 2019

we now, by default, only prune dangling images. if --all is passed, we
prune dangling images AND images that do not have an associated containers.

also went ahead and enabled the podman-remote image prune side of things.

Fixes: #2192

Signed-off-by: baude bbaude@redhat.com

@baude baude requested review from TomSweeneyRedHat and jwhonce and removed request for mheon January 22, 2019 15:27
@TomSweeneyRedHat
Copy link
Member

/approve

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 22, 2019
Copy link
Member

Choose a reason for hiding this comment

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

Is this test making a "" image? I think so, but am not 100% sure. Can we add a check to validate that there is a non-dangling image still when it's complete?

Copy link
Member

Choose a reason for hiding this comment

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

ugh, s/b "making a <none> image"

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes this builds something that leaves behind dangling images (none ones). Added an expect to make sure named, unused images are not deleted.

Copy link
Member

@TomSweeneyRedHat TomSweeneyRedHat left a comment

Choose a reason for hiding this comment

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

One test question and possible addition. Is all in the bash completions? I don't see a change there.

we now, by default, only prune dangling images.  if --all is passed, we
prune dangling images AND images that do not have an associated containers.

also went ahead and enabled the podman-remote image prune side of things.

Fixes: containers#2192

Signed-off-by: baude <bbaude@redhat.com>
@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: baude, TomSweeneyRedHat

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

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [TomSweeneyRedHat,baude]

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

@baude
Copy link
Member Author

baude commented Jan 29, 2019

has bash completions now.

Copy link
Member

@TomSweeneyRedHat TomSweeneyRedHat left a comment

Choose a reason for hiding this comment

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

LGTM, assuming happy tests

@rhatdan
Copy link
Member

rhatdan commented Jan 30, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 30, 2019
@openshift-merge-robot openshift-merge-robot merged commit 76019c3 into containers:master Jan 30, 2019
@baude baude deleted the prunelikedocker branch December 22, 2019 19:03
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants