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 /libpod | |
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 'libpod')
-rw-r--r-- | libpod/image_inspect.go | 30 |
1 files changed, 15 insertions, 15 deletions
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, |