summaryrefslogtreecommitdiff
path: root/pkg/varlinkapi
diff options
context:
space:
mode:
authorQi Wang <qiwan@redhat.com>2019-03-27 18:16:09 -0400
committerQi Wang <qiwan@redhat.com>2019-03-27 23:09:35 -0400
commitfd7a9c4a9623fc44534d9e63cbd23c8b1920b897 (patch)
treeb3769ac94cb31e551b7501a3ade655996dc2b0f3 /pkg/varlinkapi
parent340eeec1b654880f9d339c9ac2957bcaeaee6829 (diff)
downloadpodman-fd7a9c4a9623fc44534d9e63cbd23c8b1920b897.tar.gz
podman-fd7a9c4a9623fc44534d9e63cbd23c8b1920b897.tar.bz2
podman-fd7a9c4a9623fc44534d9e63cbd23c8b1920b897.zip
fix bug remote-podman images --digests
Add `digest` field to Image struct and update API.md Show image digests when using --digests in podman-remote. ``` $ PODMAN_VARLINK_ADDRESS="tcp:127.0.0.1:1234" sudo bin/podman-remote images --digests REPOSITORY TAG DIGEST IMAGE ID CREATED SIZE docker.io/library/alpine latest sha256:d05ecd4520cab5d9e5d877595fb0532aadcd6c90f4bbc837bc11679f704c4c82 5cb3aa00f899 2 weeks ago 5.79 MB docker.io/library/busybox latest sha256:4415a904b1aca178c2450fd54928ab362825e863c0ad5452fd020e92f7a6a47e d8233ab899d4 5 weeks ago 1.42 MB ``` Signed-off-by: Qi Wang <qiwan@redhat.com>
Diffstat (limited to 'pkg/varlinkapi')
-rw-r--r--pkg/varlinkapi/images.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/varlinkapi/images.go b/pkg/varlinkapi/images.go
index 210f139ce..5c8ccf7df 100644
--- a/pkg/varlinkapi/images.go
+++ b/pkg/varlinkapi/images.go
@@ -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,