merge branch 'pr-1158'

Closes #1158
LGTMs: @hqhq @cyphar
This commit is contained in:
Aleksa Sarai
2016-12-26 13:59:47 +11:00
16 changed files with 74 additions and 20 deletions

View File

@@ -86,6 +86,9 @@ following will output a list of processes running in the container:
},
},
Action: func(context *cli.Context) error {
if err := checkArgs(context, 2, minArgs); err != nil {
return err
}
if os.Geteuid() != 0 {
return fmt.Errorf("runc should be run as root")
}