move image-related functions out of cmd/kpod/common.go and into libkpod/image
Signed-off-by: Ryan Cole <rcyoalne@gmail.com>
This commit is contained in:
parent
95e17b4a73
commit
a68a981d0b
5 changed files with 60 additions and 74 deletions
|
@ -201,7 +201,7 @@ func outputImages(images []storage.Image, format string, store storage.Store, fi
|
|||
if len(imageMetadata.Blobs) > 0 {
|
||||
digest = string(imageMetadata.Blobs[0].Digest)
|
||||
}
|
||||
size, _ := getImageSize(img, store)
|
||||
size, _ := image.Size(store, img)
|
||||
|
||||
names := []string{""}
|
||||
if len(img.Names) > 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue