You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LCOW: API: Add platform to /images/create and /build
Signed-off-by: John Howard <[email protected]>
This PR has the API changes described in moby#34617.
Specifically, it adds an HTTP header "X-Requested-Platform" which is a JSON-encoded
OCI Image-spec `Platform` structure.
In addition, it renames (almost all) uses of a string variable platform (and associated)
methods/functions to os. This makes it much clearer to disambiguate with the swarm
"platform" which is really os/arch. This is a stepping stone to getting the daemon towards
fully multi-platform/arch-aware, and makes it clear when "operating system" is being
referred to rather than "platform" which is misleadingly used - sometimes in the swarm
meaning, but more often as just the operating system.
Copy file name to clipboardExpand all lines: api/swagger.yaml
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6181,6 +6181,19 @@ paths:
6181
6181
6182
6182
Only the registry domain name (and port if not the default 443) are required. However, for legacy reasons, the Docker Hub registry must be specified with both a `https://` prefix and a `/v1/` suffix even though Docker will prefer to use the v2 registry API.
6183
6183
type: "string"
6184
+
- name: "X-Requested-Platform"
6185
+
in: "header"
6186
+
description: |
6187
+
This is a JSON object representing an OCI image-spec `Platform` object. It is used to request a platform in the case that the engine supports multiple platforms. For example:
6188
+
6189
+
```
6190
+
{
6191
+
"architecture": "amd64",
6192
+
"os": "linux"
6193
+
}
6194
+
```
6195
+
type: "string"
6196
+
default: ""
6184
6197
responses:
6185
6198
200:
6186
6199
description: "no error"
@@ -6262,6 +6275,19 @@ paths:
6262
6275
in: "header"
6263
6276
description: "A base64-encoded auth configuration. [See the authentication section for details.](#section/Authentication)"
6264
6277
type: "string"
6278
+
- name: "X-Requested-Platform"
6279
+
in: "header"
6280
+
description: |
6281
+
This is a JSON object representing an OCI image-spec `Platform` object. It is used to request a platform in the case that the engine supports multiple platforms. For example:
0 commit comments