Files
runc/nsinit/main.go
Michael Crosby b21b19e060 Add factory configuration via functional api
This allows you to set certian configuration options such as what cgroup
implementation to use on the factory at create time.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-02-16 11:26:13 -08:00

34 lines
591 B
Go

package main
import (
"log"
"os"
"github.com/codegangsta/cli"
)
func main() {
app := cli.NewApp()
app.Name = "nsinit"
app.Version = "2"
app.Author = "libcontainer maintainers"
app.Flags = []cli.Flag{
cli.StringFlag{Name: "nspid"},
cli.StringFlag{Name: "console"},
cli.StringFlag{Name: "root", Value: ".", Usage: "root directory for containers"},
}
app.Commands = []cli.Command{
configCommand,
execCommand,
initCommand,
oomCommand,
pauseCommand,
statsCommand,
unpauseCommand,
stateCommand,
}
if err := app.Run(os.Args); err != nil {
log.Fatal(err)
}
}