summaryrefslogtreecommitdiff
path: root/cmd/podman/shared
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2020-03-12 09:50:55 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2020-03-12 09:51:17 +0100
commit8741eb8a9201b930abb463c1128a48bdbcec70a0 (patch)
tree1ba576d737fe09905c0c91b6cb8b5e6a30a7264c /cmd/podman/shared
parent60e9e7ca9c9081f31f6b37c922f0058f82b989ad (diff)
downloadpodman-8741eb8a9201b930abb463c1128a48bdbcec70a0.tar.gz
podman-8741eb8a9201b930abb463c1128a48bdbcec70a0.tar.bz2
podman-8741eb8a9201b930abb463c1128a48bdbcec70a0.zip
create: do not calculate image size
calculating the image size can be an expensive operation. Avoid doing it when creating a new container since the size is not needed. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'cmd/podman/shared')
-rw-r--r--cmd/podman/shared/create.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/shared/create.go b/cmd/podman/shared/create.go
index 08d32df18..5adac7e1f 100644
--- a/cmd/podman/shared/create.go
+++ b/cmd/podman/shared/create.go
@@ -101,7 +101,7 @@ func CreateContainer(ctx context.Context, c *GenericCLIResults, runtime *libpod.
if err != nil {
return nil, nil, err
}
- imageData, err = newImage.Inspect(ctx)
+ imageData, err = newImage.InspectNoSize(ctx)
if err != nil {
return nil, nil, err
}