mirror of https://github.com/containers/podman.git
Merge pull request #1868 from QiWang19/issue860
Add history field to image inspect
This commit is contained in:
commit
39560500fc
|
@ -869,6 +869,7 @@ func (i *Image) Inspect(ctx context.Context) (*inspect.ImageData, error) {
|
||||||
GraphDriver: driver,
|
GraphDriver: driver,
|
||||||
ManifestType: manifestType,
|
ManifestType: manifestType,
|
||||||
User: ociv1Img.Config.User,
|
User: ociv1Img.Config.User,
|
||||||
|
History: ociv1Img.History,
|
||||||
}
|
}
|
||||||
return data, nil
|
return data, nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -126,6 +126,7 @@ type ImageData struct {
|
||||||
Annotations map[string]string `json:"Annotations"`
|
Annotations map[string]string `json:"Annotations"`
|
||||||
ManifestType string `json:"ManifestType"`
|
ManifestType string `json:"ManifestType"`
|
||||||
User string `json:"User"`
|
User string `json:"User"`
|
||||||
|
History []v1.History `json:"History"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// RootFS holds the root fs information of an image
|
// RootFS holds the root fs information of an image
|
||||||
|
|
Loading…
Reference in New Issue