Open Antonytm opened 2 years ago
I figured out how to achieve what I need.
If mcr.microsoft.com/windows/nanoserver:1809
is used then arguments should be used in %arg%
format.
If mcr.microsoft.com/dotnet/framework/sdk:4.8
is used then arguments should be used in $env:arg
format.
Is this difference documented anywhere?
Description:
I am not able to pass any arguments to
mcr.microsoft.com/windows/nanoserver:1809
image.I want to build a few images based on
mcr.microsoft.com/windows/nanoserver:1809
with small differences. In order to achieve it, I want to pass build arguments to mydockerbuild
file. But it looks like this image doesn't accept any arguments.Steps to reproduce:
dockerbuild
fileActual result:
Output in the console:
Steps with
mcr.microsoft.com/windows/nanoserver:1809
image don't accept any args. NeitherVAR1
, norVAR2
could not be accessed in step with that image.Expected result:
Steps with
mcr.microsoft.com/windows/nanoserver:1809
image should accept arg in the same way asmcr.microsoft.com/dotnet/framework/sdk:4.8
.