You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FROM mcr.microsoft.com/windows/servercore
RUN --mount=type=secret,id=creds-usr,required=True,target=C:\secrets\creds-usr
--mount=type=secret,id=creds-psw,required=True,target=C:\secrets\creds-psw
//Followed by other commands I use to perform network operations.
The build output fails at following error unable to setup secret mount: invalid windows mount type: 'tmpfs'
Has any one has success is mounting secrets using windows containers?
Currently RUN --mount is not supported on Windows. Current mount types are Linux specific, like tmpfs.
We are yet to look into the design of this feature but it's good to see that there's demand for it, so this will help in our prioritization.
However, currently, the aim is to have full parity with the classic builder (current docker build for Windows) first.
I am using version 1.7.18 of containerd and 0.14.0 of buildkit.
When creating a docker image from docker file using the following command
buildctl.exe build
--frontend dockerfile.v0
--local context=.
--local dockerfile=.
--output type=image,\"name=test_image:1.0\"
--secret id=creds-usr,env=CREDS_USR
--secret id=creds-psw,env=CREDS_PSW
${buildArgs.join(' ')}
I have the following dockerfile
FROM mcr.microsoft.com/windows/servercore
RUN --mount=type=secret,id=creds-usr,required=True,target=C:\secrets\creds-usr
--mount=type=secret,id=creds-psw,required=True,target=C:\secrets\creds-psw
//Followed by other commands I use to perform network operations.
The build output fails at following error
unable to setup secret mount: invalid windows mount type: 'tmpfs'
Has any one has success is mounting secrets using windows containers?
Originally posted by @lorentz-1 in #5272
The text was updated successfully, but these errors were encountered: