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:
commit
f273a10240
2 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
```
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue