Merge pull request #1868 from QiWang19/issue860

Add history field to image inspect
This commit is contained in:
OpenShift Merge Robot 2018-11-26 16:46:22 -08:00 committed by GitHub
commit 39560500fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -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
} }

View File

@ -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