|
@@ -382,11 +382,13 @@ definitions:
|
|
type: "string"
|
|
type: "string"
|
|
description: |
|
|
description: |
|
|
- Empty string means not to restart
|
|
- Empty string means not to restart
|
|
|
|
+ - `no` Do not automatically restart
|
|
- `always` Always restart
|
|
- `always` Always restart
|
|
- `unless-stopped` Restart always except when the user has manually stopped the container
|
|
- `unless-stopped` Restart always except when the user has manually stopped the container
|
|
- `on-failure` Restart only when the container exit code is non-zero
|
|
- `on-failure` Restart only when the container exit code is non-zero
|
|
enum:
|
|
enum:
|
|
- ""
|
|
- ""
|
|
|
|
+ - "no"
|
|
- "always"
|
|
- "always"
|
|
- "unless-stopped"
|
|
- "unless-stopped"
|
|
- "on-failure"
|
|
- "on-failure"
|
|
@@ -2188,6 +2190,24 @@ definitions:
|
|
type: "string"
|
|
type: "string"
|
|
x-nullable: false
|
|
x-nullable: false
|
|
|
|
|
|
|
|
+ PluginPrivilegeItem:
|
|
|
|
+ description: |
|
|
|
|
+ Describes a permission the user has to accept upon installing
|
|
|
|
+ the plugin.
|
|
|
|
+ type: "object"
|
|
|
|
+ properties:
|
|
|
|
+ Name:
|
|
|
|
+ type: "string"
|
|
|
|
+ example: "network"
|
|
|
|
+ Description:
|
|
|
|
+ type: "string"
|
|
|
|
+ Value:
|
|
|
|
+ type: "array"
|
|
|
|
+ items:
|
|
|
|
+ type: "string"
|
|
|
|
+ example:
|
|
|
|
+ - "host"
|
|
|
|
+
|
|
Plugin:
|
|
Plugin:
|
|
description: "A plugin for the Engine API"
|
|
description: "A plugin for the Engine API"
|
|
type: "object"
|
|
type: "object"
|
|
@@ -2970,19 +2990,7 @@ definitions:
|
|
PluginPrivilege:
|
|
PluginPrivilege:
|
|
type: "array"
|
|
type: "array"
|
|
items:
|
|
items:
|
|
- description: |
|
|
|
|
- Describes a permission accepted by the user upon installing the
|
|
|
|
- plugin.
|
|
|
|
- type: "object"
|
|
|
|
- properties:
|
|
|
|
- Name:
|
|
|
|
- type: "string"
|
|
|
|
- Description:
|
|
|
|
- type: "string"
|
|
|
|
- Value:
|
|
|
|
- type: "array"
|
|
|
|
- items:
|
|
|
|
- type: "string"
|
|
|
|
|
|
+ $ref: "#/definitions/PluginPrivilegeItem"
|
|
ContainerSpec:
|
|
ContainerSpec:
|
|
type: "object"
|
|
type: "object"
|
|
description: |
|
|
description: |
|
|
@@ -4022,73 +4030,71 @@ definitions:
|
|
Warning: "unable to pin image doesnotexist:latest to digest: image library/doesnotexist:latest not found"
|
|
Warning: "unable to pin image doesnotexist:latest to digest: image library/doesnotexist:latest not found"
|
|
|
|
|
|
ContainerSummary:
|
|
ContainerSummary:
|
|
- type: "array"
|
|
|
|
- items:
|
|
|
|
- type: "object"
|
|
|
|
- properties:
|
|
|
|
- Id:
|
|
|
|
- description: "The ID of this container"
|
|
|
|
- type: "string"
|
|
|
|
- x-go-name: "ID"
|
|
|
|
- Names:
|
|
|
|
- description: "The names that this container has been given"
|
|
|
|
- type: "array"
|
|
|
|
- items:
|
|
|
|
- type: "string"
|
|
|
|
- Image:
|
|
|
|
- description: "The name of the image used when creating this container"
|
|
|
|
- type: "string"
|
|
|
|
- ImageID:
|
|
|
|
- description: "The ID of the image that this container was created from"
|
|
|
|
|
|
+ type: "object"
|
|
|
|
+ properties:
|
|
|
|
+ Id:
|
|
|
|
+ description: "The ID of this container"
|
|
|
|
+ type: "string"
|
|
|
|
+ x-go-name: "ID"
|
|
|
|
+ Names:
|
|
|
|
+ description: "The names that this container has been given"
|
|
|
|
+ type: "array"
|
|
|
|
+ items:
|
|
type: "string"
|
|
type: "string"
|
|
- Command:
|
|
|
|
- description: "Command to run when starting the container"
|
|
|
|
|
|
+ Image:
|
|
|
|
+ description: "The name of the image used when creating this container"
|
|
|
|
+ type: "string"
|
|
|
|
+ ImageID:
|
|
|
|
+ description: "The ID of the image that this container was created from"
|
|
|
|
+ type: "string"
|
|
|
|
+ Command:
|
|
|
|
+ description: "Command to run when starting the container"
|
|
|
|
+ type: "string"
|
|
|
|
+ Created:
|
|
|
|
+ description: "When the container was created"
|
|
|
|
+ type: "integer"
|
|
|
|
+ format: "int64"
|
|
|
|
+ Ports:
|
|
|
|
+ description: "The ports exposed by this container"
|
|
|
|
+ type: "array"
|
|
|
|
+ items:
|
|
|
|
+ $ref: "#/definitions/Port"
|
|
|
|
+ SizeRw:
|
|
|
|
+ description: "The size of files that have been created or changed by this container"
|
|
|
|
+ type: "integer"
|
|
|
|
+ format: "int64"
|
|
|
|
+ SizeRootFs:
|
|
|
|
+ description: "The total size of all the files in this container"
|
|
|
|
+ type: "integer"
|
|
|
|
+ format: "int64"
|
|
|
|
+ Labels:
|
|
|
|
+ description: "User-defined key/value metadata."
|
|
|
|
+ type: "object"
|
|
|
|
+ additionalProperties:
|
|
type: "string"
|
|
type: "string"
|
|
- Created:
|
|
|
|
- description: "When the container was created"
|
|
|
|
- type: "integer"
|
|
|
|
- format: "int64"
|
|
|
|
- Ports:
|
|
|
|
- description: "The ports exposed by this container"
|
|
|
|
- type: "array"
|
|
|
|
- items:
|
|
|
|
- $ref: "#/definitions/Port"
|
|
|
|
- SizeRw:
|
|
|
|
- description: "The size of files that have been created or changed by this container"
|
|
|
|
- type: "integer"
|
|
|
|
- format: "int64"
|
|
|
|
- SizeRootFs:
|
|
|
|
- description: "The total size of all the files in this container"
|
|
|
|
- type: "integer"
|
|
|
|
- format: "int64"
|
|
|
|
- Labels:
|
|
|
|
- description: "User-defined key/value metadata."
|
|
|
|
- type: "object"
|
|
|
|
- additionalProperties:
|
|
|
|
|
|
+ State:
|
|
|
|
+ description: "The state of this container (e.g. `Exited`)"
|
|
|
|
+ type: "string"
|
|
|
|
+ Status:
|
|
|
|
+ description: "Additional human-readable status of this container (e.g. `Exit 0`)"
|
|
|
|
+ type: "string"
|
|
|
|
+ HostConfig:
|
|
|
|
+ type: "object"
|
|
|
|
+ properties:
|
|
|
|
+ NetworkMode:
|
|
type: "string"
|
|
type: "string"
|
|
- State:
|
|
|
|
- description: "The state of this container (e.g. `Exited`)"
|
|
|
|
- type: "string"
|
|
|
|
- Status:
|
|
|
|
- description: "Additional human-readable status of this container (e.g. `Exit 0`)"
|
|
|
|
- type: "string"
|
|
|
|
- HostConfig:
|
|
|
|
- type: "object"
|
|
|
|
- properties:
|
|
|
|
- NetworkMode:
|
|
|
|
- type: "string"
|
|
|
|
- NetworkSettings:
|
|
|
|
- description: "A summary of the container's network settings"
|
|
|
|
- type: "object"
|
|
|
|
- properties:
|
|
|
|
- Networks:
|
|
|
|
- type: "object"
|
|
|
|
- additionalProperties:
|
|
|
|
- $ref: "#/definitions/EndpointSettings"
|
|
|
|
- Mounts:
|
|
|
|
- type: "array"
|
|
|
|
- items:
|
|
|
|
- $ref: "#/definitions/Mount"
|
|
|
|
|
|
+ NetworkSettings:
|
|
|
|
+ description: "A summary of the container's network settings"
|
|
|
|
+ type: "object"
|
|
|
|
+ properties:
|
|
|
|
+ Networks:
|
|
|
|
+ type: "object"
|
|
|
|
+ additionalProperties:
|
|
|
|
+ $ref: "#/definitions/EndpointSettings"
|
|
|
|
+ Mounts:
|
|
|
|
+ type: "array"
|
|
|
|
+ items:
|
|
|
|
+ $ref: "#/definitions/Mount"
|
|
|
|
|
|
Driver:
|
|
Driver:
|
|
description: "Driver represents a driver (network, logging, secrets)."
|
|
description: "Driver represents a driver (network, logging, secrets)."
|
|
@@ -4366,7 +4372,6 @@ definitions:
|
|
type: "string"
|
|
type: "string"
|
|
example: "2020-06-22T15:49:27.000000000+00:00"
|
|
example: "2020-06-22T15:49:27.000000000+00:00"
|
|
|
|
|
|
-
|
|
|
|
SystemInfo:
|
|
SystemInfo:
|
|
type: "object"
|
|
type: "object"
|
|
properties:
|
|
properties:
|
|
@@ -5261,7 +5266,9 @@ paths:
|
|
200:
|
|
200:
|
|
description: "no error"
|
|
description: "no error"
|
|
schema:
|
|
schema:
|
|
- $ref: "#/definitions/ContainerSummary"
|
|
|
|
|
|
+ type: "array"
|
|
|
|
+ items:
|
|
|
|
+ $ref: "#/definitions/ContainerSummary"
|
|
examples:
|
|
examples:
|
|
application/json:
|
|
application/json:
|
|
- Id: "8dfafdbc3a40"
|
|
- Id: "8dfafdbc3a40"
|
|
@@ -7505,6 +7512,18 @@ paths:
|
|
Refer to the [authentication section](#section/Authentication) for
|
|
Refer to the [authentication section](#section/Authentication) for
|
|
details.
|
|
details.
|
|
type: "string"
|
|
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"
|
|
- name: "platform"
|
|
in: "query"
|
|
in: "query"
|
|
description: "Platform in the format os[/arch[/variant]]"
|
|
description: "Platform in the format os[/arch[/variant]]"
|
|
@@ -8531,6 +8550,7 @@ paths:
|
|
description: "Exec configuration"
|
|
description: "Exec configuration"
|
|
schema:
|
|
schema:
|
|
type: "object"
|
|
type: "object"
|
|
|
|
+ title: "ExecConfig"
|
|
properties:
|
|
properties:
|
|
AttachStdin:
|
|
AttachStdin:
|
|
type: "boolean"
|
|
type: "boolean"
|
|
@@ -8621,6 +8641,7 @@ paths:
|
|
in: "body"
|
|
in: "body"
|
|
schema:
|
|
schema:
|
|
type: "object"
|
|
type: "object"
|
|
|
|
+ title: "ExecStartConfig"
|
|
properties:
|
|
properties:
|
|
Detach:
|
|
Detach:
|
|
type: "boolean"
|
|
type: "boolean"
|
|
@@ -9155,6 +9176,7 @@ paths:
|
|
required: true
|
|
required: true
|
|
schema:
|
|
schema:
|
|
type: "object"
|
|
type: "object"
|
|
|
|
+ title: "NetworkCreateRequest"
|
|
required: ["Name"]
|
|
required: ["Name"]
|
|
properties:
|
|
properties:
|
|
Name:
|
|
Name:
|
|
@@ -9265,6 +9287,7 @@ paths:
|
|
required: true
|
|
required: true
|
|
schema:
|
|
schema:
|
|
type: "object"
|
|
type: "object"
|
|
|
|
+ title: "NetworkConnectRequest"
|
|
properties:
|
|
properties:
|
|
Container:
|
|
Container:
|
|
type: "string"
|
|
type: "string"
|
|
@@ -9311,6 +9334,7 @@ paths:
|
|
required: true
|
|
required: true
|
|
schema:
|
|
schema:
|
|
type: "object"
|
|
type: "object"
|
|
|
|
+ title: "NetworkDisconnectRequest"
|
|
properties:
|
|
properties:
|
|
Container:
|
|
Container:
|
|
type: "string"
|
|
type: "string"
|
|
@@ -9395,20 +9419,7 @@ paths:
|
|
schema:
|
|
schema:
|
|
type: "array"
|
|
type: "array"
|
|
items:
|
|
items:
|
|
- description: |
|
|
|
|
- Describes a permission the user has to accept upon installing
|
|
|
|
- the plugin.
|
|
|
|
- type: "object"
|
|
|
|
- title: "PluginPrivilegeItem"
|
|
|
|
- properties:
|
|
|
|
- Name:
|
|
|
|
- type: "string"
|
|
|
|
- Description:
|
|
|
|
- type: "string"
|
|
|
|
- Value:
|
|
|
|
- type: "array"
|
|
|
|
- items:
|
|
|
|
- type: "string"
|
|
|
|
|
|
+ $ref: "#/definitions/PluginPrivilegeItem"
|
|
example:
|
|
example:
|
|
- Name: "network"
|
|
- Name: "network"
|
|
Description: ""
|
|
Description: ""
|
|
@@ -9484,19 +9495,7 @@ paths:
|
|
schema:
|
|
schema:
|
|
type: "array"
|
|
type: "array"
|
|
items:
|
|
items:
|
|
- description: |
|
|
|
|
- Describes a permission accepted by the user upon installing the
|
|
|
|
- plugin.
|
|
|
|
- type: "object"
|
|
|
|
- properties:
|
|
|
|
- Name:
|
|
|
|
- type: "string"
|
|
|
|
- Description:
|
|
|
|
- type: "string"
|
|
|
|
- Value:
|
|
|
|
- type: "array"
|
|
|
|
- items:
|
|
|
|
- type: "string"
|
|
|
|
|
|
+ $ref: "#/definitions/PluginPrivilegeItem"
|
|
example:
|
|
example:
|
|
- Name: "network"
|
|
- Name: "network"
|
|
Description: ""
|
|
Description: ""
|
|
@@ -9668,19 +9667,7 @@ paths:
|
|
schema:
|
|
schema:
|
|
type: "array"
|
|
type: "array"
|
|
items:
|
|
items:
|
|
- description: |
|
|
|
|
- Describes a permission accepted by the user upon installing the
|
|
|
|
- plugin.
|
|
|
|
- type: "object"
|
|
|
|
- properties:
|
|
|
|
- Name:
|
|
|
|
- type: "string"
|
|
|
|
- Description:
|
|
|
|
- type: "string"
|
|
|
|
- Value:
|
|
|
|
- type: "array"
|
|
|
|
- items:
|
|
|
|
- type: "string"
|
|
|
|
|
|
+ $ref: "#/definitions/PluginPrivilegeItem"
|
|
example:
|
|
example:
|
|
- Name: "network"
|
|
- Name: "network"
|
|
Description: ""
|
|
Description: ""
|
|
@@ -9970,6 +9957,7 @@ paths:
|
|
required: true
|
|
required: true
|
|
schema:
|
|
schema:
|
|
type: "object"
|
|
type: "object"
|
|
|
|
+ title: "SwarmInitRequest"
|
|
properties:
|
|
properties:
|
|
ListenAddr:
|
|
ListenAddr:
|
|
description: |
|
|
description: |
|
|
@@ -10068,6 +10056,7 @@ paths:
|
|
required: true
|
|
required: true
|
|
schema:
|
|
schema:
|
|
type: "object"
|
|
type: "object"
|
|
|
|
+ title: "SwarmJoinRequest"
|
|
properties:
|
|
properties:
|
|
ListenAddr:
|
|
ListenAddr:
|
|
description: |
|
|
description: |
|
|
@@ -10228,6 +10217,7 @@ paths:
|
|
required: true
|
|
required: true
|
|
schema:
|
|
schema:
|
|
type: "object"
|
|
type: "object"
|
|
|
|
+ title: "SwarmUnlockRequest"
|
|
properties:
|
|
properties:
|
|
UnlockKey:
|
|
UnlockKey:
|
|
description: "The swarm's unlock key."
|
|
description: "The swarm's unlock key."
|
|
@@ -11349,14 +11339,14 @@ paths:
|
|
description: |
|
|
description: |
|
|
A descriptor struct containing digest, media type, and size.
|
|
A descriptor struct containing digest, media type, and size.
|
|
properties:
|
|
properties:
|
|
- MediaType:
|
|
|
|
|
|
+ mediaType:
|
|
type: "string"
|
|
type: "string"
|
|
- Size:
|
|
|
|
|
|
+ size:
|
|
type: "integer"
|
|
type: "integer"
|
|
format: "int64"
|
|
format: "int64"
|
|
- Digest:
|
|
|
|
|
|
+ digest:
|
|
type: "string"
|
|
type: "string"
|
|
- URLs:
|
|
|
|
|
|
+ urls:
|
|
type: "array"
|
|
type: "array"
|
|
items:
|
|
items:
|
|
type: "string"
|
|
type: "string"
|
|
@@ -11367,17 +11357,17 @@ paths:
|
|
items:
|
|
items:
|
|
type: "object"
|
|
type: "object"
|
|
properties:
|
|
properties:
|
|
- Architecture:
|
|
|
|
|
|
+ architecture:
|
|
type: "string"
|
|
type: "string"
|
|
- OS:
|
|
|
|
|
|
+ os:
|
|
type: "string"
|
|
type: "string"
|
|
- OSVersion:
|
|
|
|
|
|
+ os.version:
|
|
type: "string"
|
|
type: "string"
|
|
- OSFeatures:
|
|
|
|
|
|
+ os.features:
|
|
type: "array"
|
|
type: "array"
|
|
items:
|
|
items:
|
|
type: "string"
|
|
type: "string"
|
|
- Variant:
|
|
|
|
|
|
+ variant:
|
|
type: "string"
|
|
type: "string"
|
|
Features:
|
|
Features:
|
|
type: "array"
|
|
type: "array"
|
|
@@ -11392,12 +11382,12 @@ paths:
|
|
URLs:
|
|
URLs:
|
|
- ""
|
|
- ""
|
|
Platforms:
|
|
Platforms:
|
|
- - Architecture: "amd64"
|
|
|
|
- OS: "linux"
|
|
|
|
- OSVersion: ""
|
|
|
|
- OSFeatures:
|
|
|
|
|
|
+ - architecture: "amd64"
|
|
|
|
+ os: "linux"
|
|
|
|
+ os.version: ""
|
|
|
|
+ os.features:
|
|
- ""
|
|
- ""
|
|
- Variant: ""
|
|
|
|
|
|
+ variant: ""
|
|
Features:
|
|
Features:
|
|
- ""
|
|
- ""
|
|
401:
|
|
401:
|