From 6b53f2c5a2983d1043638d4bf2a8791533ab4d3c Mon Sep 17 00:00:00 2001 From: Tobias Gesellchen Date: Sun, 11 Jul 2021 22:46:19 +0200 Subject: [PATCH] Add "changes" query parameter for /image/create to swagger docs Signed-off-by: Tobias Gesellchen --- api/swagger.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/api/swagger.yaml b/api/swagger.yaml index 081085f178..41d7092135 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -7507,6 +7507,18 @@ paths: Refer to the [authentication section](#section/Authentication) for details. type: "string" + - name: "changes" + in: "query" + description: | + Apply `Dockerfile` instructions to the image that is created, + for example: `changes=ENV DEBUG=true`. + Note that `ENV DEBUG=true` should be URI component encoded. + + Supported `Dockerfile` instructions: + `CMD`|`ENTRYPOINT`|`ENV`|`EXPOSE`|`ONBUILD`|`USER`|`VOLUME`|`WORKDIR` + type: "array" + items: + type: "string" - name: "platform" in: "query" description: "Platform in the format os[/arch[/variant]]"