diff options
| author | Sebastiaan van Stijn <github@gone.nl> | 2023-04-17 13:15:57 +0200 |
|---|---|---|
| committer | Sebastiaan van Stijn <github@gone.nl> | 2023-04-18 14:46:11 +0200 |
| commit | 1261fe69a3586bb102182aa885197822419c768c (patch) | |
| tree | ad1d0b47148f43d4010fcb9d3f33699053f2fad8 /api/server | |
| parent | 20a1d23b39e5769420038e510b142d410bca6662 (diff) | |
| download | docker-1261fe69a3586bb102182aa885197822419c768c.tar.gz | |
API: deprecate VirtualSize field for /images/json and /images/{id}/json
In versions of Docker before v1.10, this field was calculated from
the image itself and all of its parent images. Images are now stored
self-contained, and no longer use a parent-chain, making this field
an equivalent of the Size field.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'api/server')
| -rw-r--r-- | api/server/router/image/image_routes.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/server/router/image/image_routes.go b/api/server/router/image/image_routes.go index a0e609c427..1500f0e876 100644 --- a/api/server/router/image/image_routes.go +++ b/api/server/router/image/image_routes.go @@ -299,7 +299,7 @@ func (ir *imageRouter) toImageInspect(img *image.Image) (*types.ImageInspect, er Os: img.OperatingSystem(), OsVersion: img.OSVersion, Size: img.Details.Size, - VirtualSize: img.Details.Size, // TODO: field unused, deprecate + VirtualSize: img.Details.Size, //nolint:staticcheck // ignore SA1019: field is deprecated, but still set on API < v1.44. GraphDriver: types.GraphDriverData{ Name: img.Details.Driver, Data: img.Details.Metadata, |
