nerdctl icon indicating copy to clipboard operation
nerdctl copied to clipboard

Support build args without explicit value

Open alebcay opened this issue 3 years ago • 0 comments

This PR fixes https://github.com/containerd/nerdctl/issues/1408.

When a build arg key is specified without an explicit value, the value should be taken from the corresponding environment variable on the host.

When the corresponding environment variable on the host is unset, the build arg should be ignored to avoid masking a possible default value specified in the Dockerfile. To pass an empty string as build arg, use the form VAR= on the CLI/as an environment variable.

alebcay avatar Oct 06 '22 13:10 alebcay