mirror of
https://github.com/containers/podman.git
synced 2025-06-17 15:08:08 +08:00
Merge pull request #2784 from QiWang19/digest
fix bug remote-podman images --digests
This commit is contained in:
2
API.md
2
API.md
@ -1472,6 +1472,8 @@ gid_map [IDMap](#IDMap)
|
|||||||
|
|
||||||
id [string](https://godoc.org/builtin#string)
|
id [string](https://godoc.org/builtin#string)
|
||||||
|
|
||||||
|
digest [string](https://godoc.org/builtin#string)
|
||||||
|
|
||||||
parentId [string](https://godoc.org/builtin#string)
|
parentId [string](https://godoc.org/builtin#string)
|
||||||
|
|
||||||
repoTags [[]string](#[]string)
|
repoTags [[]string](#[]string)
|
||||||
|
@ -59,6 +59,7 @@ type VolumeRemoveOpts (
|
|||||||
|
|
||||||
type Image (
|
type Image (
|
||||||
id: string,
|
id: string,
|
||||||
|
digest: string,
|
||||||
parentId: string,
|
parentId: string,
|
||||||
repoTags: []string,
|
repoTags: []string,
|
||||||
repoDigests: []string,
|
repoDigests: []string,
|
||||||
|
@ -137,6 +137,7 @@ func imageInListToContainerImage(i iopodman.Image, name string, runtime *LocalRu
|
|||||||
ri := remoteImage{
|
ri := remoteImage{
|
||||||
InputName: name,
|
InputName: name,
|
||||||
ID: i.Id,
|
ID: i.Id,
|
||||||
|
Digest: digest.Digest(i.Digest),
|
||||||
Labels: i.Labels,
|
Labels: i.Labels,
|
||||||
RepoTags: i.RepoTags,
|
RepoTags: i.RepoTags,
|
||||||
RepoDigests: i.RepoTags,
|
RepoDigests: i.RepoTags,
|
||||||
|
@ -54,6 +54,7 @@ func (i *LibpodAPI) ListImages(call iopodman.VarlinkCall) error {
|
|||||||
|
|
||||||
i := iopodman.Image{
|
i := iopodman.Image{
|
||||||
Id: image.ID(),
|
Id: image.ID(),
|
||||||
|
Digest: string(image.Digest()),
|
||||||
ParentId: image.Parent,
|
ParentId: image.Parent,
|
||||||
RepoTags: image.Names(),
|
RepoTags: image.Names(),
|
||||||
RepoDigests: repoDigests,
|
RepoDigests: repoDigests,
|
||||||
|
Reference in New Issue
Block a user