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

Document payload returned by ImageBuild when using BuildKit #21944

Open
1 task done
cowwoc opened this issue Jan 31, 2025 · 1 comment
Open
1 task done

Document payload returned by ImageBuild when using BuildKit #21944

cowwoc opened this issue Jan 31, 2025 · 1 comment
Labels
area/build Relates to Dockerfiles or docker build command area/engine Issue affects Docker engine/daemon

Comments

@cowwoc
Copy link

cowwoc commented Jan 31, 2025

Is this a docs issue?

  • My issue is about the documentation content or website

Type of issue

I can't find what I'm looking for

Description

Please document the payload format returned by https://docs.docker.com/reference/api/engine/version/v1.47/#tag/Image/operation/ImageBuild when "version" is set to "2" (meaning, when using BuildKit for the build). It seems to return base64-encoded protobuf messages but I can't find them documented anywhere.

Related discussion by someone else: moby/buildkit#5610

Location

https://docs.docker.com/reference/api/engine/version/v1.47/#tag/Image/operation/ImageBuild

Suggestion

No response

@cowwoc cowwoc added the status/triage Needs triage label Jan 31, 2025
@cowwoc
Copy link
Author

cowwoc commented Jan 31, 2025

@tonistiigi Based on moby/buildkit#2429 (comment) it sounds like you are the right person to ask: how am I supposed to decode the contents of aux when BuildKit through https://docs.docker.com/reference/api/engine/version/v1.47/#tag/Image/operation/ImageBuild?

I downloaded and built classes from the protobuf files I found in the BuildKit repository, but it's not clear which of them I am supposed to use to decode aux. Please point me in the right direction.

PS: My library is written in Java, not Go, so I can't use your native libraries directly.

@aevesdocker aevesdocker added area/engine Issue affects Docker engine/daemon area/build Relates to Dockerfiles or docker build command and removed status/triage Needs triage labels Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build Relates to Dockerfiles or docker build command area/engine Issue affects Docker engine/daemon
Projects
None yet
Development

No branches or pull requests

2 participants