Merge pull request #477 from teddyking/mkdirall-root-dir

os.MkdirAll the containerd root dir
This commit is contained in:
Kenfe-Mickaël Laventure 2017-01-30 07:34:43 -08:00 committed by GitHub
commit 5f28d28738

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
}