fix piped image info missing image id
This commit is contained in:
parent
ed784c7a95
commit
e619ee311a
1 changed files with 16 additions and 0 deletions
16
images.go
16
images.go
|
@ -63,6 +63,22 @@ func (x *ImagesCommand) Execute(args []string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var ims []Image
|
||||||
|
for _, image := range *images {
|
||||||
|
ims = append(ims, Image{
|
||||||
|
image.Id,
|
||||||
|
image.ParentId,
|
||||||
|
image.RepoTags,
|
||||||
|
image.VirtualSize,
|
||||||
|
image.Size,
|
||||||
|
image.Created,
|
||||||
|
image.Id,
|
||||||
|
"",
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
images = &ims
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
client, err := connect()
|
client, err := connect()
|
||||||
|
|
Loading…
Reference in a new issue