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

[24.0 backport] c8d/container: Follow snapshot parents for size calculation #46097

Merged
merged 1 commit into from Jul 28, 2023

Commits on Jul 28, 2023

  1. c8d/container: Follow snapshot parents for size calculation

    Refactor GetContainerLayerSize to calculate unpacked image size only by
    following the snapshot parent tree directly instead of following it by
    using diff ids from image config.
    
    This works even if the original manifest/config used to create that
    container is no longer present in the content store.
    
    Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
    (cherry picked from commit 4d8e3f5)
    Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
    vvoland committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    7927cae View commit details
    Browse the repository at this point in the history