1
0
mirror of https://github.com/docker/cli.git synced 2026-01-15 07:40:57 +03:00

Update Images() to allow retrieving specific image size data

Those data include:
 - size of data shared with other images
 - size of data unique to a given image
 - how many containers are using a given image

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
Kenfe-Mickael Laventure
2016-08-23 16:19:37 -07:00
parent 5ca7909308
commit 82dc15836b

View File

@@ -225,5 +225,6 @@ func (c *imageContext) CreatedAt() string {
func (c *imageContext) Size() string {
c.AddHeader(sizeHeader)
return units.HumanSizeWithPrecision(float64(c.i.Size), 3)
//NOTE: For backward compatibility we need to return VirtualSize
return units.HumanSizeWithPrecision(float64(c.i.VirtualSize), 3)
}