From 2e96acf3007cbd05a37a8af7156f0abda073cb5a Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Sun, 11 Feb 2018 06:05:29 -0500 Subject: 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 Closes: #306 Approved by: mheon --- libpod/image_inspect.go | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'libpod') diff --git a/libpod/image_inspect.go b/libpod/image_inspect.go index cc4b8307a..df2d3640e 100644 --- a/libpod/image_inspect.go +++ b/libpod/image_inspect.go @@ -42,21 +42,21 @@ func getImageData(img storage.Image, imgRef types.Image, size int64, driver *ins } data := &inspect.ImageData{ - ID: img.ID, - RepoTags: img.Names, - RepoDigests: repoDigests, - Comment: ociv1Img.History[0].Comment, - Created: ociv1Img.Created, - Author: ociv1Img.Author, - Architecture: ociv1Img.Architecture, - Os: ociv1Img.OS, - Config: &ociv1Img.Config, - Version: info.DockerVersion, - Size: size, - VirtualSize: size + imgSize, - Annotations: annotations, - Digest: imgDigest, - Labels: info.Labels, + ID: img.ID, + RepoTags: img.Names, + RepoDigests: repoDigests, + Comment: ociv1Img.History[0].Comment, + Created: ociv1Img.Created, + Author: ociv1Img.Author, + Architecture: ociv1Img.Architecture, + Os: ociv1Img.OS, + ContainerConfig: &ociv1Img.Config, + Version: info.DockerVersion, + Size: size, + VirtualSize: size + imgSize, + Annotations: annotations, + Digest: imgDigest, + Labels: info.Labels, RootFS: &inspect.RootFS{ Type: ociv1Img.RootFS.Type, Layers: ociv1Img.RootFS.DiffIDs, -- cgit v1.2.3-54-g00ecf