Add history and namespaceoptions to image inspect

Signed-off-by: Qi Wang <qiwan@redhat.com>
This commit is contained in:
Qi Wang 2018-11-22 21:49:30 -05:00
parent 1fdfeb8710
commit 5438ec1918
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,
ManifestType: manifestType,
User: ociv1Img.Config.User,
History: ociv1Img.History,
}
return data, nil
}

View File

@ -126,6 +126,7 @@ type ImageData struct {
Annotations map[string]string `json:"Annotations"`
ManifestType string `json:"ManifestType"`
User string `json:"User"`
History []v1.History `json:"History"`
}
// RootFS holds the root fs information of an image