summaryrefslogtreecommitdiff
path: root/libpod/runtime_pod_infra_linux.go
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 /libpod/runtime_pod_infra_linux.go
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 'libpod/runtime_pod_infra_linux.go')
-rw-r--r--libpod/runtime_pod_infra_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/runtime_pod_infra_linux.go b/libpod/runtime_pod_infra_linux.go
index da46f03e8..be590a5c8 100644
--- a/libpod/runtime_pod_infra_linux.go
+++ b/libpod/runtime_pod_infra_linux.go
@@ -147,7 +147,7 @@ func (r *Runtime) createInfraContainer(ctx context.Context, p *Pod) (*Container,
return nil, err
}
- data, err := newImage.Inspect(ctx)
+ data, err := newImage.InspectNoSize(ctx)
if err != nil {
return nil, err
}