diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2018-02-11 06:05:29 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-02-11 11:50:34 +0000 |
commit | 2e96acf3007cbd05a37a8af7156f0abda073cb5a (patch) | |
tree | eab653d95e0d9fe3deb44f12140782c84059eaa2 /cmd/podman/inspect.go | |
parent | d26266659d8649b36b91e8f8f78f8073007554ac (diff) | |
download | podman-2e96acf3007cbd05a37a8af7156f0abda073cb5a.tar.gz podman-2e96acf3007cbd05a37a8af7156f0abda073cb5a.tar.bz2 podman-2e96acf3007cbd05a37a8af7156f0abda073cb5a.zip |
Change json to match docker inspect
Changing these fields caused the output of podman inspect to more
closely match docker inspect.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes: #306
Approved by: mheon
Diffstat (limited to 'cmd/podman/inspect.go')
-rw-r--r-- | cmd/podman/inspect.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/inspect.go b/cmd/podman/inspect.go index 84107f3db..ce5a3b823 100644 --- a/cmd/podman/inspect.go +++ b/cmd/podman/inspect.go @@ -78,6 +78,10 @@ func inspectCmd(c *cli.Context) error { inspectType = inspectTypeContainer } outputFormat := c.String("format") + if strings.Contains(outputFormat, "{{.Id}}") { + outputFormat = strings.Replace(outputFormat, "{{.Id}}", formats.IDString, -1) + } + var data interface{} switch inspectType { case inspectTypeContainer: |