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:
Alexander Morozov
2015-09-01 09:32:29 -07:00
parent 4d8e13fc3e
commit ea5032bc5e
23 changed files with 1260 additions and 684 deletions
+3 -4
View File
@@ -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)
}