summaryrefslogtreecommitdiff
path: root/libpod/container_inspect.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-08-01 11:34:36 -0400
committerMatthew Heon <matthew.heon@pm.me>2019-08-01 11:34:36 -0400
commitea02c11cc1d0c4db50395c35ed735eceacf670b8 (patch)
treef0c349651820ed1c11f07c6bae53f20ad1a01c6b /libpod/container_inspect.go
parenta622f8d345b1853401de2e533e9fbf14ef169fa2 (diff)
downloadpodman-ea02c11cc1d0c4db50395c35ed735eceacf670b8.tar.gz
podman-ea02c11cc1d0c4db50395c35ed735eceacf670b8.tar.bz2
podman-ea02c11cc1d0c4db50395c35ed735eceacf670b8.zip
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>
Diffstat (limited to 'libpod/container_inspect.go')
-rw-r--r--libpod/container_inspect.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/container_inspect.go b/libpod/container_inspect.go
index aee8c4657..1b6dd829c 100644
--- a/libpod/container_inspect.go
+++ b/libpod/container_inspect.go
@@ -99,6 +99,7 @@ type InspectContainerData struct {
ImageID string `json:"Image"`
ImageName string `json:"ImageName"`
Rootfs string `json:"Rootfs"`
+ Pod string `json:"Pod"`
ResolvConfPath string `json:"ResolvConfPath"`
HostnamePath string `json:"HostnamePath"`
HostsPath string `json:"HostsPath"`
@@ -717,6 +718,7 @@ func (c *Container) getContainerInspectData(size bool, driverData *driver.Data)
ExitCommand: config.ExitCommand,
Namespace: config.Namespace,
Rootfs: config.Rootfs,
+ Pod: config.Pod,
ResolvConfPath: resolvPath,
HostnamePath: hostnamePath,
HostsPath: hostsPath,