mirror of
https://github.com/opencontainers/runc.git
synced 2025-10-30 02:31:54 +08:00
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>
34 lines
591 B
Go
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)
|
|
}
|
|
}
|