summaryrefslogtreecommitdiff
path: root/pkg/inspect/inspect.go
diff options
context:
space:
mode:
authorumohnani8 <umohnani@redhat.com>2018-02-05 10:42:14 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-02-06 19:31:55 +0000
commit367213a3943961126c6f7c1dce45c7fafea9e6b2 (patch)
tree758846f65e55f4f005b03fbfd5d81933db6cf437 /pkg/inspect/inspect.go
parent69d75a82515b6b4270cd6b72617cff1531f9ceca (diff)
downloadpodman-367213a3943961126c6f7c1dce45c7fafea9e6b2.tar.gz
podman-367213a3943961126c6f7c1dce45c7fafea9e6b2.tar.bz2
podman-367213a3943961126c6f7c1dce45c7fafea9e6b2.zip
Match podman inspect output to docker inspect
Made a change to make sure that the output paths of podman inspect matches that of docker inspect. For example to get the stop signal you should be able to do podman inspect ctr --format {{.Config.StopSignal}} and the same thing in docker will give the same results. Signed-off-by: umohnani8 <umohnani@redhat.com> Closes: #292 Approved by: rhatdan
Diffstat (limited to 'pkg/inspect/inspect.go')
-rw-r--r--pkg/inspect/inspect.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/inspect/inspect.go b/pkg/inspect/inspect.go
index 9e7137560..11a252535 100644
--- a/pkg/inspect/inspect.go
+++ b/pkg/inspect/inspect.go
@@ -12,9 +12,9 @@ import (
// ContainerData holds the podman inspect data for a container
type ContainerData struct {
- CtrInspectData *ContainerInspectData `json:"CtrInspectData"`
- HostConfig *HostConfig `json:"HostConfig"`
- Config *CtrConfig `json:"Config"`
+ *ContainerInspectData
+ HostConfig *HostConfig `json:"HostConfig"`
+ Config *CtrConfig `json:"Config"`
}
// HostConfig represents the host configuration for the container