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
-
I noticed that
docker buildx build --cache-to
creates aapplication/vnd.oci.image.index.v1+json
at 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 config
tries 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.v0
seems 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.0
and manually inspecting resources that--cache-to
pushed to a self hosted distribution spec compliant registry using logs andcurl
.Beta Was this translation helpful? Give feedback.
All reactions