add image user to inspect data

Signed-off-by: baude <bbaude@redhat.com>

Closes: #1036
Approved by: rhatdan
This commit is contained in:
baude
2018-07-02 08:30:11 -05:00
committed by Atomic Bot
parent b96be3af1b
commit d357703e06
2 changed files with 2 additions and 0 deletions

View File

@ -815,6 +815,7 @@ func (i *Image) Inspect(ctx context.Context) (*inspect.ImageData, error) {
}, },
GraphDriver: driver, GraphDriver: driver,
ManifestType: manifestType, ManifestType: manifestType,
User: ociv1Img.Config.User,
} }
return data, nil return data, nil
} }

View File

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