Add example buildargs usage

Signed-off-by: Jon Surrell <jon.surrell@gmail.com>
This commit is contained in:
Jon Surrell 2018-02-12 14:02:54 +01:00
parent de2b2b5e4b
commit 344c73ac67
No known key found for this signature in database
GPG key ID: 263A660FF6EFB758

View file

@ -6178,6 +6178,12 @@ paths:
uses the buildargs as the environment context for commands run via the `Dockerfile` RUN uses the buildargs as the environment context for commands run via the `Dockerfile` RUN
instruction, or for variable expansion in other `Dockerfile` instructions. This is not meant for instruction, or for variable expansion in other `Dockerfile` instructions. This is not meant for
passing secret values. passing secret values.
For example, the build arg `FOO=bar` would become `{"FOO":"bar"}` in JSON. This would result in the
the query parameter `buildargs={"FOO":"bar"}`. Note that `{"FOO":"bar"}` should be URI component encoded.
[Read more about the buildargs instruction.](https://docs.docker.com/engine/reference/builder/#arg) [Read more about the buildargs instruction.](https://docs.docker.com/engine/reference/builder/#arg)
type: "string" type: "string"
- name: "shmsize" - name: "shmsize"