summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-07-02 08:30:11 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-07-02 15:10:46 +0000
commitd357703e061258a57854df1880e23775dbe717ef (patch)
tree81753f137d94e4730148376ca956113c5015160a
parentb96be3af1b9d00662758211420c955becbaf2f9e (diff)
downloadpodman-d357703e061258a57854df1880e23775dbe717ef.tar.gz
podman-d357703e061258a57854df1880e23775dbe717ef.tar.bz2
podman-d357703e061258a57854df1880e23775dbe717ef.zip
add image user to inspect data
Signed-off-by: baude <bbaude@redhat.com> Closes: #1036 Approved by: rhatdan
-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 57eabe2c8..b56617ae7 100644
--- a/libpod/image/image.go
+++ b/libpod/image/image.go
@@ -815,6 +815,7 @@ func (i *Image) Inspect(ctx context.Context) (*inspect.ImageData, error) {
},
GraphDriver: driver,
ManifestType: manifestType,
+ User: ociv1Img.Config.User,
}
return data, nil
}
diff --git a/pkg/inspect/inspect.go b/pkg/inspect/inspect.go
index 61776f1e2..5b5a27c3d 100644
--- a/pkg/inspect/inspect.go
+++ b/pkg/inspect/inspect.go
@@ -125,6 +125,7 @@ type ImageData struct {
Labels map[string]string `json:"Labels"`
Annotations map[string]string `json:"Annotations"`
ManifestType string `json:"ManifestType"`
+ User string `json:"User"`
}
// RootFS holds the root fs information of an image