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

Stop caching encrypted layers in docker destination #1314

Closed
wants to merge 1 commit into from

Commits on Jul 26, 2021

  1. Stop caching encrypted layers in docker destination

    In a case where a non-encrypted images is committed to a registry after
    an encrypted image is committed, this library may try to reuse
    encrypted layers for the non-encrypted images if the images have common
    layers. When the non-encrypted image is committed, there is no
    information to recognize that cached layers are encrypted. As a result,
    the non-encrypted image has encrypted layers unexpectedly in the
    registry. This causes an error when the non-encrypted image is pulled
    from the registry.
    
    To avoid reusing encrypted layers for another image, this change stops
    caching a layer if it is encrypted.
    
    Signed-off-by: Hironori Shiina <shiina.hironori@jp.fujitsu.com>
    Hironori Shiina committed Jul 26, 2021
    Configuration menu
    Copy the full SHA
    6930674 View commit details
    Browse the repository at this point in the history