mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
graph: add VirtualSize for inspect output
Currently inspect output just shows Size info, and that usally be very small and even 0 which is confusing. Fixes #8016 Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
parent
3ea5a20776
commit
ec000cbf30
1 changed files with 1 additions and 0 deletions
|
@ -149,6 +149,7 @@ func (s *TagStore) CmdLookup(job *engine.Job) engine.Status {
|
|||
out.Set("Architecture", image.Architecture)
|
||||
out.Set("Os", image.OS)
|
||||
out.SetInt64("Size", image.Size)
|
||||
out.SetInt64("VirtualSize", image.GetParentsSize(0)+image.Size)
|
||||
if _, err = out.WriteTo(job.Stdout); err != nil {
|
||||
return job.Error(err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue