Merge pull request #103 from mikebrow/path-to-runc

small amount of error checking and help for path to the runtime
This commit is contained in:
Mrunal Patel 2016-10-06 09:32:11 -07:00 committed by GitHub
commit f273a10240
2 changed files with 8 additions and 0 deletions

View file

@ -62,6 +62,10 @@ $ sudo make install
```
# ocid --debug
```
If the default --runtime value does not point to your runtime:
```
# ocid --runtime $(which runc)
```
#### Create a pod
```

View file

@ -88,6 +88,10 @@ func main() {
}
logrus.SetOutput(f)
}
if _, err := os.Stat(c.GlobalString("runtime")); os.IsNotExist(err) {
// path to runtime does not exist
return fmt.Errorf("invalid --runtime value %q", err)
}
switch c.GlobalString("log-format") {
case "text":
// retain logrus's default.