-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
podman image prune -- implement all flag #2205
podman image prune -- implement all flag #2205
Conversation
d4e1224
to
9231355
Compare
/approve |
@@ -57,6 +56,7 @@ var _ = Describe("Podman rm", func() { | |||
}) | |||
|
|||
It("podman image prune none images", func() { | |||
SkipIfRemote() |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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"
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
9231355
to
bc468b8
Compare
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>
bc468b8
to
656033c
Compare
[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
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
has bash completions now. |
There was a problem hiding this 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
/lgtm |
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