summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2018-02-11 06:05:29 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-02-11 11:50:34 +0000
commit2e96acf3007cbd05a37a8af7156f0abda073cb5a (patch)
treeeab653d95e0d9fe3deb44f12140782c84059eaa2 /libpod
parentd26266659d8649b36b91e8f8f78f8073007554ac (diff)
downloadpodman-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.go30
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,