mirror of
https://github.com/containers/podman.git
synced 2025-05-22 09:36:57 +08:00
Print Pod ID in podman inspect
output
Somehow this managed to slip through the cracks, but this is definitely something inspect should print. Signed-off-by: Matthew Heon <matthew.heon@pm.me>
This commit is contained in:
@ -99,6 +99,7 @@ type InspectContainerData struct {
|
|||||||
ImageID string `json:"Image"`
|
ImageID string `json:"Image"`
|
||||||
ImageName string `json:"ImageName"`
|
ImageName string `json:"ImageName"`
|
||||||
Rootfs string `json:"Rootfs"`
|
Rootfs string `json:"Rootfs"`
|
||||||
|
Pod string `json:"Pod"`
|
||||||
ResolvConfPath string `json:"ResolvConfPath"`
|
ResolvConfPath string `json:"ResolvConfPath"`
|
||||||
HostnamePath string `json:"HostnamePath"`
|
HostnamePath string `json:"HostnamePath"`
|
||||||
HostsPath string `json:"HostsPath"`
|
HostsPath string `json:"HostsPath"`
|
||||||
@ -717,6 +718,7 @@ func (c *Container) getContainerInspectData(size bool, driverData *driver.Data)
|
|||||||
ExitCommand: config.ExitCommand,
|
ExitCommand: config.ExitCommand,
|
||||||
Namespace: config.Namespace,
|
Namespace: config.Namespace,
|
||||||
Rootfs: config.Rootfs,
|
Rootfs: config.Rootfs,
|
||||||
|
Pod: config.Pod,
|
||||||
ResolvConfPath: resolvPath,
|
ResolvConfPath: resolvPath,
|
||||||
HostnamePath: hostnamePath,
|
HostnamePath: hostnamePath,
|
||||||
HostsPath: hostsPath,
|
HostsPath: hostsPath,
|
||||||
|
Reference in New Issue
Block a user