mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #36246 from sirreal/fix/swagger-buildargs-type
Fix string type for buildargs API definition
This commit is contained in:
commit
9cbe066e27
1 changed files with 13 additions and 2 deletions
|
@ -6173,8 +6173,19 @@ paths:
|
|||
type: "integer"
|
||||
- name: "buildargs"
|
||||
in: "query"
|
||||
description: "JSON map of string pairs for build-time variables. Users pass these values at build-time. Docker 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 passing secret values. [Read more about the buildargs instruction.](https://docs.docker.com/engine/reference/builder/#arg)"
|
||||
type: "integer"
|
||||
description: >
|
||||
JSON map of string pairs for build-time variables. Users pass these values at build-time. Docker
|
||||
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
|
||||
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)
|
||||
type: "string"
|
||||
- name: "shmsize"
|
||||
in: "query"
|
||||
description: "Size of `/dev/shm` in bytes. The size must be greater than 0. If omitted the system uses 64MB."
|
||||
|
|
Loading…
Add table
Reference in a new issue