Fix ContainerSummary swagger docs
Signed-off-by: Tobias Gesellchen <tobias@gesellix.de>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 8168d1877d
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
7092a6091c
commit
b8bee972c4
1 changed files with 66 additions and 66 deletions
|
@ -3871,73 +3871,71 @@ definitions:
|
|||
Warning: "unable to pin image doesnotexist:latest to digest: image library/doesnotexist:latest not found"
|
||||
|
||||
ContainerSummary:
|
||||
type: "array"
|
||||
items:
|
||||
type: "object"
|
||||
properties:
|
||||
Id:
|
||||
description: "The ID of this container"
|
||||
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"
|
||||
x-go-name: "ID"
|
||||
Names:
|
||||
description: "The names that this container has been given"
|
||||
type: "array"
|
||||
items:
|
||||
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"
|
||||
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"
|
||||
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"
|
||||
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:
|
||||
description: "Driver represents a driver (network, logging, secrets)."
|
||||
|
@ -5105,7 +5103,9 @@ paths:
|
|||
200:
|
||||
description: "no error"
|
||||
schema:
|
||||
$ref: "#/definitions/ContainerSummary"
|
||||
type: "array"
|
||||
items:
|
||||
$ref: "#/definitions/ContainerSummary"
|
||||
examples:
|
||||
application/json:
|
||||
- Id: "8dfafdbc3a40"
|
||||
|
|
Loading…
Reference in a new issue