From 8741eb8a9201b930abb463c1128a48bdbcec70a0 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Thu, 12 Mar 2020 09:50:55 +0100 Subject: 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 --- cmd/podman/shared/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') 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 } -- cgit v1.2.3-54-g00ecf