diff options
Diffstat (limited to 'cmd/kpod')
-rw-r--r-- | cmd/kpod/create.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/kpod/create.go b/cmd/kpod/create.go index caee0c7f0..f2b8898ca 100644 --- a/cmd/kpod/create.go +++ b/cmd/kpod/create.go @@ -242,11 +242,11 @@ func parseCreateOpts(c *cli.Context, runtime *libpod.Runtime) (*createConfig, er var blkioWeight uint16 var uid, gid uint32 - image := c.Args()[0] - if len(c.Args()) < 1 { return nil, errors.Errorf("image name or ID is required") } + image := c.Args()[0] + if len(c.Args()) > 1 { command = c.Args()[1:] } |