Convert Unused ARG error to warning
Signed-off-by: Addam Hardy <addam.hardy@gmail.com> Upstream-commit: f150f42009dddb4f9b8d4ceef8763af701b0d0f9 Component: engine
This commit is contained in:
@ -1286,12 +1286,12 @@ to create the directory in the Dockerfile. For example:
|
||||
ARG <name>[=<default value>]
|
||||
|
||||
The `ARG` instruction defines a variable that users can pass at build-time to
|
||||
the builder with the `docker build` command using the
|
||||
`--build-arg <varname>=<value>` flag. If a user specifies a build argument
|
||||
that was not defined in the Dockerfile, the build outputs an error.
|
||||
the builder with the `docker build` command using the `--build-arg
|
||||
<varname>=<value>` flag. If a user specifies a build argument that was not
|
||||
defined in the Dockerfile, the build outputs a warning.
|
||||
|
||||
```
|
||||
One or more build-args were not consumed, failing build.
|
||||
[Warning] One or more build-args [foo] were not consumed.
|
||||
```
|
||||
|
||||
The Dockerfile author can define a single variable by specifying `ARG` once or many
|
||||
|
||||
Reference in New Issue
Block a user