-
Notifications
You must be signed in to change notification settings - Fork 202
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
fix "dangling" filter and pruning #684
Conversation
As discussed in github.com/containers/podman/issues/10832 the definition of a "dangling" image in Podman has historically been incorrect. While the Docker docs describe a dangling image as an image without a tag, and Podman implemented the filters as such, Docker actually implemented the filters for images without a tag and without children. Refine the dangling filters and hence `IsDangling()` to only return true if an image is untagged and has no children. Also correct the comments of `IsIntermediate()`. Signed-off-by: Valentin Rothberg <[email protected]>
[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 |
Handle images without physical layers when constructing the layer tree and store them in a dedicated slice that can later on be consulted when computing parent/child relations. Such "empty" images can be built with, for instance, with the following Dockerfile: ``` FROM scratch ENV test1=test1 ENV test2=test2 ``` Signed-off-by: Valentin Rothberg <[email protected]>
Fix a bug where not all removed images were actually reported as such. A regression test will be added to Podman. Signed-off-by: Valentin Rothberg <[email protected]>
@containers/podman-maintainers PTAL |
LGTM |
@Luap99 PTAL |
/lgtm |
A set of commits to fix containers/podman#10832:
Podman PR: containers/podman#10983
Buildah PR: containers/buildah#3390