mirror of https://github.com/docker/cli.git
Convert Unused ARG error to warning
Signed-off-by: Addam Hardy <addam.hardy@gmail.com>
This commit is contained in:
parent
49a282eb1c
commit
44edbbdbc2
|
@ -1286,12 +1286,12 @@ to create the directory in the Dockerfile. For example:
|
||||||
ARG <name>[=<default value>]
|
ARG <name>[=<default value>]
|
||||||
|
|
||||||
The `ARG` instruction defines a variable that users can pass at build-time to
|
The `ARG` instruction defines a variable that users can pass at build-time to
|
||||||
the builder with the `docker build` command using the
|
the builder with the `docker build` command using the `--build-arg
|
||||||
`--build-arg <varname>=<value>` flag. If a user specifies a build argument
|
<varname>=<value>` flag. If a user specifies a build argument that was not
|
||||||
that was not defined in the Dockerfile, the build outputs an error.
|
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
|
The Dockerfile author can define a single variable by specifying `ARG` once or many
|
||||||
|
|
|
@ -326,10 +326,10 @@ A Dockerfile is similar to a Makefile.
|
||||||
The `ARG` instruction defines a variable that users can pass at build-time to
|
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
|
the builder with the `docker build` command using the `--build-arg
|
||||||
<varname>=<value>` flag. If a user specifies a build argument that was not
|
<varname>=<value>` flag. If a user specifies a build argument that was not
|
||||||
defined in the Dockerfile, the build outputs an error.
|
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
|
The Dockerfile author can define a single variable by specifying `ARG` once or many
|
||||||
|
@ -471,3 +471,4 @@ A Dockerfile is similar to a Makefile.
|
||||||
*May 2014, Compiled by Zac Dover (zdover at redhat dot com) based on docker.com Dockerfile documentation.
|
*May 2014, Compiled by Zac Dover (zdover at redhat dot com) based on docker.com Dockerfile documentation.
|
||||||
*Feb 2015, updated by Brian Goff (cpuguy83@gmail.com) for readability
|
*Feb 2015, updated by Brian Goff (cpuguy83@gmail.com) for readability
|
||||||
*Sept 2015, updated by Sally O'Malley (somalley@redhat.com)
|
*Sept 2015, updated by Sally O'Malley (somalley@redhat.com)
|
||||||
|
*Oct 2016, updated by Addam Hardy (addam.hardy@gmail.com)
|
||||||
|
|
Loading…
Reference in New Issue