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,
ManifestType: manifestType,
User: ociv1Img.Config.User,
}
return data, nil
}

View File

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