diff --git a/src/cmd/create.go b/src/cmd/create.go index abc8eb7..2862c40 100644 --- a/src/cmd/create.go +++ b/src/cmd/create.go @@ -100,12 +100,13 @@ func create(cmd *cobra.Command, args []string) error { return nil } - var container string - var containerArg string if cmd.Flag("image").Changed && cmd.Flag("release").Changed { return errors.New("options --image and --release cannot be used together") } + var container string + var containerArg string + if len(args) != 0 { container = args[0] containerArg = "CONTAINER"