summaryrefslogtreecommitdiff
path: root/daemon/images/image_list.go
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/images/image_list.go')
-rw-r--r--daemon/images/image_list.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/daemon/images/image_list.go b/daemon/images/image_list.go
index 1c3331c8b7..00161434c4 100644
--- a/daemon/images/image_list.go
+++ b/daemon/images/image_list.go
@@ -257,11 +257,10 @@ func (i *ImageService) Images(ctx context.Context, opts types.ImageListOptions)
func newImageSummary(image *image.Image, size int64) *types.ImageSummary {
summary := &types.ImageSummary{
- ParentID: image.Parent.String(),
- ID: image.ID().String(),
- Created: image.Created.Unix(),
- Size: size,
- VirtualSize: size, //nolint:staticcheck // ignore SA1019: field is deprecated, but still set on API < v1.44.
+ ParentID: image.Parent.String(),
+ ID: image.ID().String(),
+ Created: image.Created.Unix(),
+ Size: size,
// -1 indicates that the value has not been set (avoids ambiguity
// between 0 (default) and "not set". We cannot use a pointer (nil)
// for this, as the JSON representation uses "omitempty", which would