Update man pages and output for kpod images

The size had a precision of 4, but wanted a precision of 3
to match the output of docker images
updated the man page with more examples
vendored in new version of docker/go-units to allow
for customized precisions

Signed-off-by: umohnani8 <umohnani@redhat.com>

Closes: #82
Approved by: rhatdan
This commit is contained in:
umohnani8
2017-11-28 09:34:07 -05:00
committed by Atomic Bot
parent c0eceaa403
commit a1d0d9f5d1
3 changed files with 73 additions and 8 deletions

View File

@ -218,7 +218,7 @@ func getImagesTemplateOutput(runtime *libpod.Runtime, images []*storage.Image, o
ID: imageID,
Digest: imageDigest,
Created: units.HumanDuration(time.Since((createdTime))) + " ago",
Size: units.HumanSize(float64(size)),
Size: units.HumanSizeWithPrecision(float64(size), 3),
}
imagesOutput = append(imagesOutput, params)
}