Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cli.Command{ Name: "container", Usage: "run cluster Container", Flags: []cli.Flag{ app.NamespaceFlag, &cli.StringFlag{ Name: "image", Usage: "container image to start", }, app.PortsFlag, }, Action: func(c *cli.Context) error { client := app.MustClient(c) path, err := os.Getwd() if err != nil { return err } image := c.String("image") namespace := app.Namespace(c) if image == "" { image = "debian" } if namespace == "" { namespace = client.Namespace() } tunnels, _ := app.Ports(c) return Run(c.Context, client, namespace, image, true, true, path, tunnels) }, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.