mirror of
https://github.com/containers/podman.git
synced 2025-06-29 06:57:13 +08:00
add image user to inspect data
Signed-off-by: baude <bbaude@redhat.com> Closes: #1036 Approved by: rhatdan
This commit is contained in:
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user