Fix the pid-file option for runc run/exec/create command

Signed-off-by: Wang Long <long.wanglong@huawei.com>
This commit is contained in:
Wang Long
2016-11-01 19:13:49 +08:00
parent bc462c96bf
commit 8676c75442
7 changed files with 106 additions and 0 deletions
+3
View File
@@ -54,6 +54,9 @@ command(s) that get executed on start, edit the args parameter of the spec. See
cli.ShowCommandHelp(context, "create")
return fmt.Errorf("runc: \"create\" requires exactly one argument")
}
if err := revisePidFile(context); err != nil {
return err
}
spec, err := setupSpec(context)
if err != nil {
return err