Replies: 3 comments
|
To be clear, this command used to work (with the old Docker
More on the and today, gives me a different response than yesterday:
which tells me this command hits the network. |
|
Adding to my question, I found moby/buildkit#4854 which is IMO a bit more general than what I'm asking for here: I'm trying to get the manifest digest of an image in my builder cache, but that image isn't built here: it's from a registry. E.g.:
which appears to match Any clues as to how to use |
|
Hi — I think the core issue is that To read the digest your builder already has cached locally, try these read-only commands: docker buildx du --verbose 2>/dev/null | grep -oE 'sha256:[a-f0-9]{64}' | head
docker inspect --format '{{index .RepoDigests 0}}' rust:1.89.0-slim
docker buildx versionThe first reads local build-cache records without touching the network; the second works only if the image was Could you share the output of |
Uh oh!
There was an error while loading. Please reload this page.
Hi!
I've tried both:
to get that image's digest from my builder's cache (it's there, all local). BTW the expected answer (today) is:
However it is incomprehensible to me why even just the (non-experimental)
imagetools inspectcommand takes 4-5s to respond... I don't see any CPU/RAM spikes... Is this hitting the network? Everything should be in my builder's cache though.How can I get the digest of my local copy of a tag in
<1s?Oh and BTW
--format={{.Manifest.Digest}}(withoutjsonformatting) is still broken: it ignores the Go tmpl.Thanks!
All reactions