Repository navigation
podstorage: Check image existence using image IDs - #2693
Open
Johan-Liebert1 wants to merge 1 commit into
Open
Johan-Liebert1 wants to merge 1 commit into
Johan-Liebert1 wants to merge 1 commit into
Conversation
Johan-Liebert1
requested review from
cgwalters
and
a balanced review from Copilot
November 25, 2026 03:40
Johan-Liebert1
force-pushed
the
fix-2640
branch
from
November 25, 2026 04:54
f66369e to
5bc551d
Compare
Ran into an issue where I'd specified, in the LBI file, the name of an images as `Image=nginx:1.31.9-alpine-slim`. The pruning function gathered a list of all present images locally and ended up with `docker/library/nginx:1.31.9-alpine-slim` which did not match the name I had in the `.image` file and the image ended up being pruned. Fix this by gathering image IDs for all bound images and only prune the image if we can't find it by name and by ID. We still have to search by name as we can't be sure if the image which provisioned the system is present on the system or not. Fixes: bootc-dev#2640 tmt: Add test for bootc-dev#2640 Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
Johan-Liebert1
force-pushed
the
fix-2640
branch
from
November 26, 2026 03:40
5bc551d to
c87751c
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ran into an issue where I'd specified, in the LBI file, the name of an images as
Image=nginx:1.31.9-alpine-slim. The pruning function gathered a list of all present images locally and ended up withdocker/library/nginx:1.31.9-alpine-slimwhich did not match the name I had in the.imagefile and the image ended up being pruned.Fix this by gathering image IDs for all bound images and only prune the image if we can't find it by name and by ID. We still have to search by name as we can't be sure if the image which provisioned the system is present on the system or not.
Fixes: #2640
tmt: Add test for #2640