os.MkdirAll the containerd root dir

Signed-off-by: Ed King <ed@teddyking.co.uk>
This commit is contained in:
Ed King 2017-01-28 15:47:51 +00:00
parent d7bea77cc3
commit 89607a10db
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ func main() {
switch runtime {
case "shim":
root := filepath.Join(context.GlobalString("root"), "shim")
err = os.Mkdir(root, 0700)
err = os.MkdirAll(root, 0700)
if err != nil && !os.IsExist(err) {
return err
}