diff options
author | Sascha Grunert <sgrunert@suse.com> | 2019-11-26 16:08:04 +0100 |
---|---|---|
committer | Sascha Grunert <sgrunert@suse.com> | 2019-11-27 13:42:06 +0100 |
commit | 63e46cc85cb0a9523e9c48db7a88039e0baeac29 (patch) | |
tree | 4d3720c8cc7b6d8058302a6682e4597530b52ef1 /pkg/varlinkapi | |
parent | aef38585ed313d1096c1fa4f6281f36e5e47422b (diff) | |
download | podman-63e46cc85cb0a9523e9c48db7a88039e0baeac29.tar.gz podman-63e46cc85cb0a9523e9c48db7a88039e0baeac29.tar.bz2 podman-63e46cc85cb0a9523e9c48db7a88039e0baeac29.zip |
Add support for image name history
We leverage the containers/storage image history tracking feature to
show the previously used image names when running:
`podman images --history`
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
Diffstat (limited to 'pkg/varlinkapi')
-rw-r--r-- | pkg/varlinkapi/images.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/varlinkapi/images.go b/pkg/varlinkapi/images.go index c27088805..7abffa42a 100644 --- a/pkg/varlinkapi/images.go +++ b/pkg/varlinkapi/images.go @@ -70,6 +70,7 @@ func (i *LibpodAPI) ListImages(call iopodman.VarlinkCall) error { Labels: labels, IsParent: isParent, ReadOnly: image.IsReadOnly(), + History: image.NamesHistory(), } imageList = append(imageList, i) } @@ -111,6 +112,7 @@ func (i *LibpodAPI) GetImage(call iopodman.VarlinkCall, id string) error { Labels: labels, TopLayer: newImage.TopLayer(), ReadOnly: newImage.IsReadOnly(), + History: newImage.NamesHistory(), } return call.ReplyGetImage(il) } |