-
-
Notifications
You must be signed in to change notification settings - Fork 646
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
Docker image_id missing from docker.docker-info.json under buildx & containerd_snapshotter #20520
Comments
Thanks for filing an issue, and sorry for the trouble. I agree that an additional regex may be required... however, we'd need to confirm which of those are "image ID". Of particular note, there's significantly different behaviour between the image ID and the digest: #17299 (comment) Can you confirm which (if any) of those allow you to do (It would be separately desirable to include the digest in its own field, when available... maybe one of those is the "digest", that allows |
In this case I believe these are all digests (which is why they're sha256: prefixed) but represent different pieces of metadata. The last line
Having the digest be available prior to push is new behavior with the containerd-snapshotter I think |
You can see via
|
Ah, cool, my knowledge is out of date. Thanks for that. 👍 It looks like you've identified the right place for the fix and the right fix; do you want to add another regex and add another test case or two to Do you happen to know much about multiplatform builds (something like |
I added a test case that covers the cross platform builds too. For those there is an additional manifest/config line per platform I think. The regex captures the final manifest list though, which is what you'd want for |
Describe the bug
When enabling buildx support as described in https://www.pantsbuild.org/2.19/docs/docker#buildx-support with
containerd-snapshotter: true
, thedocker.docker-info.json
is missing theimage_id
field in the output. Its set to<missing>
Pants version
2.19.0
OS
MacOS
Additional info
Example
docker.docker-info.json
Relevant logs from the build
The output under this configuration doesn't match either of the regexes listed in package_image.py
So this results in a non-match. Would the fix be to include an additional regex for
exporting manifest list sha256:
?The text was updated successfully, but these errors were encountered: