summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQi Wang <qiwan@redhat.com>2018-11-22 21:49:30 -0500
committerQi Wang <qiwan@redhat.com>2018-11-26 10:56:55 -0500
commit5438ec19181cc5855e6b54e152e0fe3161a75913 (patch)
tree8bb8a2f38eec460f4088bd883acac931fb28a1bc
parent1fdfeb87100aee82d4de17b2b3f9a81aedfcb6a8 (diff)
downloadpodman-5438ec19181cc5855e6b54e152e0fe3161a75913.tar.gz
podman-5438ec19181cc5855e6b54e152e0fe3161a75913.tar.bz2
podman-5438ec19181cc5855e6b54e152e0fe3161a75913.zip
Add history and namespaceoptions to image inspect
Signed-off-by: Qi Wang <qiwan@redhat.com>
-rw-r--r--libpod/image/image.go1
-rw-r--r--pkg/inspect/inspect.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/libpod/image/image.go b/libpod/image/image.go
index 7e520d97e..2d03786a9 100644
--- a/libpod/image/image.go
+++ b/libpod/image/image.go
@@ -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
}
diff --git a/pkg/inspect/inspect.go b/pkg/inspect/inspect.go
index 62ba53147..5bdcf677f 100644
--- a/pkg/inspect/inspect.go
+++ b/pkg/inspect/inspect.go
@@ -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