From daba2462f545b155011e1f183a85f00a18926181 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sun, 9 Jun 2024 23:05:27 +0200 Subject: [PATCH] docs: api: image inspect: remove Container and ContainerConfig The Container and ContainerConfig fields have been deprecated, and removed since API v1.45 in commit 03cddc62f4bcd48fbc3a31dd94f2bf84e44840dd. This patch fixes the swagger and documentation to no longer mention them as they are no longer returned by API v1.45 and higher. Signed-off-by: Sebastiaan van Stijn (cherry picked from commit ac27a5379b8aa1d3b5be930c89ebd6148a9713e6) Signed-off-by: Sebastiaan van Stijn --- api/swagger.yaml | 22 ---------------------- docs/api/v1.45.yaml | 22 ---------------------- 2 files changed, 44 deletions(-) diff --git a/api/swagger.yaml b/api/swagger.yaml index 43a780e994..75b45727e5 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -1198,13 +1198,6 @@ definitions: ContainerConfig: 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" properties: Hostname: @@ -1758,21 +1751,6 @@ definitions: format: "dateTime" x-nullable: true example: "2022-02-04T21:20:12.497794809Z" - Container: - description: | - The ID of the container that was used to create the image. - - Depending on how the image was created, this field may be empty. - - **Deprecated**: this field is kept for backward compatibility, but - will be removed in API v1.45. - type: "string" - example: "65974bc86f1770ae4bff79f651ebdbce166ae9aada632ee3fa9af3a264911735" - ContainerConfig: - description: | - **Deprecated**: this field is kept for backward compatibility, but - will be removed in API v1.45. - $ref: "#/definitions/ContainerConfig" DockerVersion: description: | The version of Docker that was used to build the image. diff --git a/docs/api/v1.45.yaml b/docs/api/v1.45.yaml index 43a780e994..75b45727e5 100644 --- a/docs/api/v1.45.yaml +++ b/docs/api/v1.45.yaml @@ -1198,13 +1198,6 @@ definitions: ContainerConfig: 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" properties: Hostname: @@ -1758,21 +1751,6 @@ definitions: format: "dateTime" x-nullable: true example: "2022-02-04T21:20:12.497794809Z" - Container: - description: | - The ID of the container that was used to create the image. - - Depending on how the image was created, this field may be empty. - - **Deprecated**: this field is kept for backward compatibility, but - will be removed in API v1.45. - type: "string" - example: "65974bc86f1770ae4bff79f651ebdbce166ae9aada632ee3fa9af3a264911735" - ContainerConfig: - description: | - **Deprecated**: this field is kept for backward compatibility, but - will be removed in API v1.45. - $ref: "#/definitions/ContainerConfig" DockerVersion: description: | The version of Docker that was used to build the image.