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

inline: fix uncompressed digest importing from multiple providers #4796

Merged

Conversation

tonistiigi
Copy link
Member

fix #2274

When Moby adapters are used without containerd backend, the descriptors are lacking the original compressed layer digest and there is a workaround to link in the uncompressed digest. If a build exporting the cache also imported it from the registry then the original imported records with compressed digest needs to be exported as well. If there were another exported records that referred to the same layers via the uncompressed digest through parent layers then such records could be overwritten and the original provider from cache import could get lost.

When Moby adapters are used without containerd backend, the
descriptors are lacking the original compressed layer digest and
there is a workaround to link in the uncompressed digest. If
a build exporting the cache also imported it from the registry
then the original imported records with compressed digest needs
to be exported as well. If there were another exported records
that referred to the same layers via the uncompressed digest
through parent layers then such records could be overwritten
and the original provider from cache import could get lost.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@tonistiigi tonistiigi merged commit 0925c53 into moby:master Mar 26, 2024
72 checks passed
@sraka1
Copy link

sraka1 commented May 23, 2024

@tonistiigi raising also here for visibility (asked in discussions as well) - is there an ETA for when this could land in a release? Either 0.14 or 0.13.3 (I personally think it warrants a cherry pick and a patch release just for this). Thanks!

@tonistiigi
Copy link
Member Author

This is coming in 0.14 (rc eta next Friday). The patch can also be ported over to Moby directly without buildkit update. As it doesn't directly affect buildkitd then no 0.13.3 .

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

Successfully merging this pull request may close these issues.

Docker BuildKit caching w/ --cache-from fails every second time, except when using docker-container
3 participants