mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Adjust runc to new opencontainers/specs version
I deleted possibility to specify config file from commands for now. Until we decide how it'll be done. Also I changed runc spec interface to write config files instead of output them. Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
@@ -5,10 +5,11 @@ import (
|
||||
|
||||
"github.com/Sirupsen/logrus"
|
||||
"github.com/codegangsta/cli"
|
||||
"github.com/opencontainers/specs"
|
||||
)
|
||||
|
||||
const (
|
||||
version = "0.2"
|
||||
version = "0.3"
|
||||
usage = `Open Container Initiative runtime
|
||||
|
||||
runc is a command line client for running applications packaged according to
|
||||
@@ -54,7 +55,7 @@ func main() {
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "root",
|
||||
Value: "/run/oci",
|
||||
Value: specs.LinuxStateDirectory,
|
||||
Usage: "root directory for storage of container state (this should be located in tmpfs)",
|
||||
},
|
||||
cli.StringFlag{
|
||||
@@ -87,8 +88,6 @@ func main() {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// Default to 'start' if no command is specified
|
||||
app.Action = startCommand.Action
|
||||
if err := app.Run(os.Args); err != nil {
|
||||
logrus.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user