api/types/image: InspectResponse: remove deprecated fields by thaJeztah · Pull Request #51103 · moby/moby (original) (raw)

thaJeztah

@thaJeztah

The InspectResponse type contains various fields that are deprecated and removed from current API versions, but that were kept for the API server to produce the fields when downgrading to older API versions.

This patch:

This patch removes the following fields from the InspectResponse type;

remove deprecated Container, ContainerConfig, VirtualSize

[moby/moby@4352da7]: moby@4352da7 [moby/moby@1261fe6]: moby@1261fe6 [moby/moby@913b0f5]: moby@913b0f5 [moby/moby@1602e2f]: moby@1602e2f [moby/moby@03cddc6]: moby@03cddc6 [client.ImageInspect]: https://github.com/moby/moby/blob/f739c61c69a7155362993c2a2a624e838b3893bc/client/image_inspect.go#L14-L64 [docker image inspect]: https://github.com/docker/cli/blob/74e3520724d77e63ef75987cbd0c0cde507ab971/cli/command/image/inspect.go#L59-L81

Signed-off-by: Sebastiaan van Stijn github@gone.nl

@thaJeztah

…sion

The InspectResponse type contains various fields that are deprecated and removed from current API versions, but that were kept for the API server to produce the fields when downgrading to older API versions.

Both fields were implicitly deprecated with the deprecation of the legacy builder, and deprecated for the API in [moby/moby@bd8a99b], which was backported to the 28.x release.

This patch:

[moby/moby@bd8a99b]: moby@bd8a99b [client.ImageInspect]: https://github.com/moby/moby/blob/f739c61c69a7155362993c2a2a624e838b3893bc/client/image_inspect.go#L14-L64 [docker image inspect]: https://github.com/docker/cli/blob/74e3520724d77e63ef75987cbd0c0cde507ab971/cli/command/image/inspect.go#L59-L81

Signed-off-by: Sebastiaan van Stijn github@gone.nl

@thaJeztah thaJeztah deleted the image_inspect_rm_deprecated branch

October 8, 2025 11:06

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})