Curious why --cache-to creates an image index
#911
Unanswered
mxmeinhold
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed that
docker buildx build --cache-tocreates aapplication/vnd.oci.image.index.v1+jsonat the cache destination.This struck me as odd, given that the "manifests" referenced by it seem to be pushed as blobs in my testing, and aren't resolvable as manifests in the registry. This results in some broken expectations for client (e.g.
crane configtries to fetch one of the "manifests" as a manifest, which of course fails). I would think this could fairly easily translated to an image manifest, since theapplication/vnd.buildkit.cacheconfig.v0seems a good candidate for the config field, and the other entries look to already be layer mediatypes.Is there some restriction that requires cache be pushed as an image index?
Context:
I'm testing with
crane version 0.7.0and manually inspecting resources that--cache-topushed to a self hosted distribution spec compliant registry using logs andcurl.Beta Was this translation helpful? Give feedback.
All reactions