Merge pull request #2784 from QiWang19/digest

fix bug remote-podman images --digests
This commit is contained in:
OpenShift Merge Robot
2019-03-28 16:51:31 -07:00
committed by GitHub
4 changed files with 5 additions and 0 deletions

2
API.md
View File

@ -1472,6 +1472,8 @@ gid_map [IDMap](#IDMap)
id [string](https://godoc.org/builtin#string)
digest [string](https://godoc.org/builtin#string)
parentId [string](https://godoc.org/builtin#string)
repoTags [[]string](#[]string)

View File

@ -59,6 +59,7 @@ type VolumeRemoveOpts (
type Image (
id: string,
digest: string,
parentId: string,
repoTags: []string,
repoDigests: []string,

View File

@ -137,6 +137,7 @@ func imageInListToContainerImage(i iopodman.Image, name string, runtime *LocalRu
ri := remoteImage{
InputName: name,
ID: i.Id,
Digest: digest.Digest(i.Digest),
Labels: i.Labels,
RepoTags: i.RepoTags,
RepoDigests: i.RepoTags,

View File

@ -54,6 +54,7 @@ func (i *LibpodAPI) ListImages(call iopodman.VarlinkCall) error {
i := iopodman.Image{
Id: image.ID(),
Digest: string(image.Digest()),
ParentId: image.Parent,
RepoTags: image.Names(),
RepoDigests: repoDigests,