Merge pull request #43461 from thaJeztah/api_document_ContainerConfig
api: improve documentation of ContainerConfig type
This commit is contained in:
commit
603c64fff0
14 changed files with 114 additions and 11 deletions
|
@ -1154,6 +1154,13 @@ definitions:
|
||||||
ContainerConfig:
|
ContainerConfig:
|
||||||
description: |
|
description: |
|
||||||
Configuration for a container that is portable between hosts.
|
Configuration for a container that is portable between hosts.
|
||||||
|
|
||||||
|
When used as `ContainerConfig` field in an image, `ContainerConfig` is an
|
||||||
|
optional field containing the configuration of the container that was last
|
||||||
|
committed when creating the image.
|
||||||
|
|
||||||
|
Previous versions of Docker builder used this field to store build cache,
|
||||||
|
and it is not in active use anymore.
|
||||||
type: "object"
|
type: "object"
|
||||||
properties:
|
properties:
|
||||||
Hostname:
|
Hostname:
|
||||||
|
|
|
@ -73,8 +73,11 @@ type ImageInspect struct {
|
||||||
// Depending on how the image was created, this field may be empty.
|
// Depending on how the image was created, this field may be empty.
|
||||||
Container string
|
Container string
|
||||||
|
|
||||||
// ContainerConfig is the configuration of the container that was committed
|
// ContainerConfig is an optional field containing the configuration of the
|
||||||
// into the image.
|
// container that was last committed when creating the image.
|
||||||
|
//
|
||||||
|
// Previous versions of Docker builder used this field to store build cache,
|
||||||
|
// and it is not in active use anymore.
|
||||||
ContainerConfig *container.Config
|
ContainerConfig *container.Config
|
||||||
|
|
||||||
// DockerVersion is the version of Docker that was used to build the image.
|
// DockerVersion is the version of Docker that was used to build the image.
|
||||||
|
|
|
@ -757,7 +757,15 @@ definitions:
|
||||||
- "hyperv"
|
- "hyperv"
|
||||||
|
|
||||||
ContainerConfig:
|
ContainerConfig:
|
||||||
description: "Configuration for a container that is portable between hosts"
|
description: |
|
||||||
|
Configuration for a container that is portable between hosts.
|
||||||
|
|
||||||
|
When used as `ContainerConfig` field in an image, `ContainerConfig` is an
|
||||||
|
optional field containing the configuration of the container that was last
|
||||||
|
committed when creating the image.
|
||||||
|
|
||||||
|
Previous versions of Docker builder used this field to store build cache,
|
||||||
|
and it is not in active use anymore.
|
||||||
type: "object"
|
type: "object"
|
||||||
properties:
|
properties:
|
||||||
Hostname:
|
Hostname:
|
||||||
|
|
|
@ -758,7 +758,15 @@ definitions:
|
||||||
- "hyperv"
|
- "hyperv"
|
||||||
|
|
||||||
ContainerConfig:
|
ContainerConfig:
|
||||||
description: "Configuration for a container that is portable between hosts"
|
description: |
|
||||||
|
Configuration for a container that is portable between hosts.
|
||||||
|
|
||||||
|
When used as `ContainerConfig` field in an image, `ContainerConfig` is an
|
||||||
|
optional field containing the configuration of the container that was last
|
||||||
|
committed when creating the image.
|
||||||
|
|
||||||
|
Previous versions of Docker builder used this field to store build cache,
|
||||||
|
and it is not in active use anymore.
|
||||||
type: "object"
|
type: "object"
|
||||||
properties:
|
properties:
|
||||||
Hostname:
|
Hostname:
|
||||||
|
|
|
@ -821,7 +821,15 @@ definitions:
|
||||||
- "hyperv"
|
- "hyperv"
|
||||||
|
|
||||||
ContainerConfig:
|
ContainerConfig:
|
||||||
description: "Configuration for a container that is portable between hosts"
|
description: |
|
||||||
|
Configuration for a container that is portable between hosts.
|
||||||
|
|
||||||
|
When used as `ContainerConfig` field in an image, `ContainerConfig` is an
|
||||||
|
optional field containing the configuration of the container that was last
|
||||||
|
committed when creating the image.
|
||||||
|
|
||||||
|
Previous versions of Docker builder used this field to store build cache,
|
||||||
|
and it is not in active use anymore.
|
||||||
type: "object"
|
type: "object"
|
||||||
properties:
|
properties:
|
||||||
Hostname:
|
Hostname:
|
||||||
|
|
|
@ -826,7 +826,15 @@ definitions:
|
||||||
- "hyperv"
|
- "hyperv"
|
||||||
|
|
||||||
ContainerConfig:
|
ContainerConfig:
|
||||||
description: "Configuration for a container that is portable between hosts"
|
description: |
|
||||||
|
Configuration for a container that is portable between hosts.
|
||||||
|
|
||||||
|
When used as `ContainerConfig` field in an image, `ContainerConfig` is an
|
||||||
|
optional field containing the configuration of the container that was last
|
||||||
|
committed when creating the image.
|
||||||
|
|
||||||
|
Previous versions of Docker builder used this field to store build cache,
|
||||||
|
and it is not in active use anymore.
|
||||||
type: "object"
|
type: "object"
|
||||||
properties:
|
properties:
|
||||||
Hostname:
|
Hostname:
|
||||||
|
|
|
@ -837,7 +837,15 @@ definitions:
|
||||||
- "hyperv"
|
- "hyperv"
|
||||||
|
|
||||||
ContainerConfig:
|
ContainerConfig:
|
||||||
description: "Configuration for a container that is portable between hosts"
|
description: |
|
||||||
|
Configuration for a container that is portable between hosts.
|
||||||
|
|
||||||
|
When used as `ContainerConfig` field in an image, `ContainerConfig` is an
|
||||||
|
optional field containing the configuration of the container that was last
|
||||||
|
committed when creating the image.
|
||||||
|
|
||||||
|
Previous versions of Docker builder used this field to store build cache,
|
||||||
|
and it is not in active use anymore.
|
||||||
type: "object"
|
type: "object"
|
||||||
properties:
|
properties:
|
||||||
Hostname:
|
Hostname:
|
||||||
|
|
|
@ -817,7 +817,15 @@ definitions:
|
||||||
- "hyperv"
|
- "hyperv"
|
||||||
|
|
||||||
ContainerConfig:
|
ContainerConfig:
|
||||||
description: "Configuration for a container that is portable between hosts"
|
description: |
|
||||||
|
Configuration for a container that is portable between hosts.
|
||||||
|
|
||||||
|
When used as `ContainerConfig` field in an image, `ContainerConfig` is an
|
||||||
|
optional field containing the configuration of the container that was last
|
||||||
|
committed when creating the image.
|
||||||
|
|
||||||
|
Previous versions of Docker builder used this field to store build cache,
|
||||||
|
and it is not in active use anymore.
|
||||||
type: "object"
|
type: "object"
|
||||||
properties:
|
properties:
|
||||||
Hostname:
|
Hostname:
|
||||||
|
|
|
@ -817,7 +817,15 @@ definitions:
|
||||||
- "hyperv"
|
- "hyperv"
|
||||||
|
|
||||||
ContainerConfig:
|
ContainerConfig:
|
||||||
description: "Configuration for a container that is portable between hosts"
|
description: |
|
||||||
|
Configuration for a container that is portable between hosts.
|
||||||
|
|
||||||
|
When used as `ContainerConfig` field in an image, `ContainerConfig` is an
|
||||||
|
optional field containing the configuration of the container that was last
|
||||||
|
committed when creating the image.
|
||||||
|
|
||||||
|
Previous versions of Docker builder used this field to store build cache,
|
||||||
|
and it is not in active use anymore.
|
||||||
type: "object"
|
type: "object"
|
||||||
properties:
|
properties:
|
||||||
Hostname:
|
Hostname:
|
||||||
|
|
|
@ -821,7 +821,15 @@ definitions:
|
||||||
- "hyperv"
|
- "hyperv"
|
||||||
|
|
||||||
ContainerConfig:
|
ContainerConfig:
|
||||||
description: "Configuration for a container that is portable between hosts"
|
description: |
|
||||||
|
Configuration for a container that is portable between hosts.
|
||||||
|
|
||||||
|
When used as `ContainerConfig` field in an image, `ContainerConfig` is an
|
||||||
|
optional field containing the configuration of the container that was last
|
||||||
|
committed when creating the image.
|
||||||
|
|
||||||
|
Previous versions of Docker builder used this field to store build cache,
|
||||||
|
and it is not in active use anymore.
|
||||||
type: "object"
|
type: "object"
|
||||||
properties:
|
properties:
|
||||||
Hostname:
|
Hostname:
|
||||||
|
|
|
@ -832,7 +832,15 @@ definitions:
|
||||||
type: "string"
|
type: "string"
|
||||||
|
|
||||||
ContainerConfig:
|
ContainerConfig:
|
||||||
description: "Configuration for a container that is portable between hosts"
|
description: |
|
||||||
|
Configuration for a container that is portable between hosts.
|
||||||
|
|
||||||
|
When used as `ContainerConfig` field in an image, `ContainerConfig` is an
|
||||||
|
optional field containing the configuration of the container that was last
|
||||||
|
committed when creating the image.
|
||||||
|
|
||||||
|
Previous versions of Docker builder used this field to store build cache,
|
||||||
|
and it is not in active use anymore.
|
||||||
type: "object"
|
type: "object"
|
||||||
properties:
|
properties:
|
||||||
Hostname:
|
Hostname:
|
||||||
|
|
|
@ -1067,6 +1067,13 @@ definitions:
|
||||||
ContainerConfig:
|
ContainerConfig:
|
||||||
description: |
|
description: |
|
||||||
Configuration for a container that is portable between hosts.
|
Configuration for a container that is portable between hosts.
|
||||||
|
|
||||||
|
When used as `ContainerConfig` field in an image, `ContainerConfig` is an
|
||||||
|
optional field containing the configuration of the container that was last
|
||||||
|
committed when creating the image.
|
||||||
|
|
||||||
|
Previous versions of Docker builder used this field to store build cache,
|
||||||
|
and it is not in active use anymore.
|
||||||
type: "object"
|
type: "object"
|
||||||
properties:
|
properties:
|
||||||
Hostname:
|
Hostname:
|
||||||
|
|
|
@ -1128,6 +1128,13 @@ definitions:
|
||||||
ContainerConfig:
|
ContainerConfig:
|
||||||
description: |
|
description: |
|
||||||
Configuration for a container that is portable between hosts.
|
Configuration for a container that is portable between hosts.
|
||||||
|
|
||||||
|
When used as `ContainerConfig` field in an image, `ContainerConfig` is an
|
||||||
|
optional field containing the configuration of the container that was last
|
||||||
|
committed when creating the image.
|
||||||
|
|
||||||
|
Previous versions of Docker builder used this field to store build cache,
|
||||||
|
and it is not in active use anymore.
|
||||||
type: "object"
|
type: "object"
|
||||||
properties:
|
properties:
|
||||||
Hostname:
|
Hostname:
|
||||||
|
|
|
@ -1160,6 +1160,13 @@ definitions:
|
||||||
ContainerConfig:
|
ContainerConfig:
|
||||||
description: |
|
description: |
|
||||||
Configuration for a container that is portable between hosts.
|
Configuration for a container that is portable between hosts.
|
||||||
|
|
||||||
|
When used as `ContainerConfig` field in an image, `ContainerConfig` is an
|
||||||
|
optional field containing the configuration of the container that was last
|
||||||
|
committed when creating the image.
|
||||||
|
|
||||||
|
Previous versions of Docker builder used this field to store build cache,
|
||||||
|
and it is not in active use anymore.
|
||||||
type: "object"
|
type: "object"
|
||||||
properties:
|
properties:
|
||||||
Hostname:
|
Hostname:
|
||||||
|
|
Loading…
Reference in a new issue