Merge pull request #391 from mrunalp/exec_validate
Validate process configuration for runc exec
This commit is contained in:
commit
1df35060e4
3
exec.go
3
exec.go
|
@ -23,6 +23,9 @@ var execCommand = cli.Command{
|
|||
if os.Geteuid() != 0 {
|
||||
logrus.Fatal("runc should be run as root")
|
||||
}
|
||||
if config.Args == nil {
|
||||
logrus.Fatal("args missing in process configuration")
|
||||
}
|
||||
status, err := execProcess(context, config)
|
||||
if err != nil {
|
||||
logrus.Fatalf("exec failed: %v", err)
|
||||
|
|
Loading…
Reference in New Issue