dockerode icon indicating copy to clipboard operation
dockerode copied to clipboard

Support build secrets with buildkit (version 2)

Open relu91 opened this issue 1 month ago • 1 comments

Hello here! I notice that the latest support for buildkit https://github.com/apocas/dockerode/pull/766 didn't cover the ability to express secrets in the build request. This PR covers this gap by following the already implemented pattern and adding an additional option to the buildImage method.

Secrets can be passed as a map of secretId : Buffer.

relu91 avatar Dec 10 '25 15:12 relu91

Hi,

Thank you for your time :)

Could you please check the tests: https://github.com/apocas/dockerode/actions/runs/20104364824/job/57847453313?pr=821#step:6:462

Best regards,

apocas avatar Dec 12 '25 00:12 apocas