Skip to content

Commit

Permalink
Merge pull request #2784 from QiWang19/digest
Browse files Browse the repository at this point in the history
fix bug remote-podman images --digests
  • Loading branch information
openshift-merge-robot authored Mar 28, 2019
2 parents 9085898 + fd7a9c4 commit df5b6e2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions cmd/podman/varlink/io.podman.varlink
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ type VolumeRemoveOpts (

type Image (
id: string,
digest: string,
parentId: string,
repoTags: []string,
repoDigests: []string,
Expand Down
1 change: 1 addition & 0 deletions pkg/adapter/runtime_remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions pkg/varlinkapi/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit df5b6e2

Please sign in to comment.