Merge pull request #477 from teddyking/mkdirall-root-dir
os.MkdirAll the containerd root dir
This commit is contained in:
commit
5f28d28738
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue