You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnfmt.Errorf("only one function name is allowed")
@@ -77,7 +82,7 @@ services deployed within your OpenFaaS cluster.`,
77
82
78
83
cmd.Flags().BoolVar(&opts.print, "print", false, "Print the docker command instead of running it")
79
84
cmd.Flags().BoolVar(&opts.build, "build", true, "Build function prior to local-run")
80
-
cmd.Flags().IntVarP(&opts.port, "port", "p", 8080, "port to bind the function to")
85
+
cmd.Flags().IntVarP(&opts.port, "port", "p", 8080, "port to bind the function to, set to \"0\" to use a random port")
81
86
cmd.Flags().Var(&tagFormat, "tag", "Override latest tag on function Docker image, accepts 'digest', 'sha', 'branch', or 'describe', or 'latest'")
82
87
83
88
cmd.Flags().StringVar(&opts.network, "network", "", "connect function to an existing network, use 'host' to access other process already running on localhost. When using this, '--port' is ignored, if you have port collisions, you may change the port using '-e port=NEW_PORT'")
0 commit comments