How to mount secrets when building an image #3510
Unanswered
hector-sab
asked this question in
Q&A
Replies: 1 comment
|
Hi @hector-sab there is no support for buildkit at the moment (#573), as there is no programmatic API for it. There could be something that shells out to bake directly, although I'd avoid that for not delivering a great UX for developers. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I am trying to build an image so that I can test it, but it's failing with the error
create container: build image: no active sessions. Any suggestion on how to fix this would be appreciated.I think it has to do with buildkit (which I have enabled, see below) as whenever I remove
--mount=type=secret,id=netrc,dst=/root/.netrcI can see logs form the build process when trying to run the snippet below.This is what I have so far.
This is the log when trying to do
go test integration_test.goAll reactions