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

Fixes detection if the image contains compressed layers #1981

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

laozc
Copy link

@laozc laozc commented Jul 18, 2024

This PR fixes the detection for an image with compressed layers.

Currently only the first base layer is probed to determine whether the image contains compressed layers.
However, the image may consist from a uncompressed base layer and compressed upper layers.
Typically for the image windows-host-process-container-base-image shipped from MSFT,
the base layer is a tar without compression.
Images built using BuildKit upon windows-host-process-container-base-image will become a mixed form
of uncompressed base layer and compressed upper layers.
It will result in a broken image with wrong blob after they are pushed to the registry.

Fixes: #1980

Copy link

This Pull Request is stale because it has been open for 90 days with
no activity. It will automatically close after 30 more days of
inactivity. Keep fresh with the 'lifecycle/frozen' label.

@akhilerm
Copy link

akhilerm commented Nov 13, 2024

@jonjohnsonjr Can you please take a look at this patch and see if it can be taken in?, facing the same issue while using crane.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

crane: Windows images failed to pull after pushing to local hosted Docker Registry instance
2 participants