diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/shared/create.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/podman/shared/create.go b/cmd/podman/shared/create.go index 43b1b4067..4de68e4bc 100644 --- a/cmd/podman/shared/create.go +++ b/cmd/podman/shared/create.go @@ -80,6 +80,8 @@ func CreateContainer(ctx context.Context, c *GenericCLIResults, runtime *libpod. name := "" if len(c.InputArgs) != 0 { name = c.InputArgs[0] + } else { + return nil, nil, errors.Errorf("error, no input arguments were provided") } newImage, err := runtime.ImageRuntime().New(ctx, name, rtc.SignaturePolicyPath, GetAuthFile(""), writer, nil, image.SigningOptions{}, false, nil) if err != nil { |