diff --git a/internal/commands/run.go b/internal/commands/run.go index 38674d25c..00f75157c 100644 --- a/internal/commands/run.go +++ b/internal/commands/run.go @@ -69,7 +69,9 @@ func runCmd(dockerCli command.Cli) *cobra.Command { cmd.Flags().StringVar(&opts.orchestrator, "orchestrator", "", "Orchestrator to install on (swarm, kubernetes)") cmd.Flags().StringVar(&opts.kubeNamespace, "namespace", "default", "Kubernetes namespace to install into") cmd.Flags().StringVar(&opts.stackName, "name", "", "Assign a name to the installation") - cmd.Flags().StringVar(&opts.cnabBundle, "cnab-bundle-json", "", "Run a CNAB bundle instead of a Docker App") + if dockerCli.ClientInfo().HasExperimental { + cmd.Flags().StringVar(&opts.cnabBundle, "cnab-bundle-json", "", "Run a CNAB bundle instead of a Docker App") + } cmd.Flags().StringArrayVar(&opts.labels, "label", nil, "Label to add to services") return cmd