testcontainers-dotnet icon indicating copy to clipboard operation
testcontainers-dotnet copied to clipboard

[Bug]: Support passing build secrets when building docker images

Open bjuraga opened this issue 10 months ago • 2 comments

Testcontainers version

latest

Using the latest Testcontainers version?

Yes

Host OS

Windows

Host arch

x64

.NET version

8

Docker version

latest

Docker info

latest

What happened?

I am not able to pass a docker secret to the ImageFromDockerfileBuilder

Relevant log output


Additional information

No response

bjuraga avatar Mar 24 '25 15:03 bjuraga

I doubt we can support this. I am not aware of this feature being exposed through the Docker Engine API. I believe this is a BuildKit feature, which we are unable to support due to technical limitations: https://github.com/testcontainers/testcontainers-dotnet/discussions/1193#discussioncomment-10315903.

HofmeisterAn avatar Mar 24 '25 16:03 HofmeisterAn

In that case - this can be closed.

bjuraga avatar Mar 25 '25 09:03 bjuraga