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

View file

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