From 89607a10dbff7c4ef9099d97c4460a9f8806a261 Mon Sep 17 00:00:00 2001 From: Ed King Date: Sat, 28 Jan 2017 15:47:51 +0000 Subject: [PATCH] os.MkdirAll the containerd root dir Signed-off-by: Ed King --- cmd/containerd/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/containerd/main.go b/cmd/containerd/main.go index 2dfd5fc..d622667 100644 --- a/cmd/containerd/main.go +++ b/cmd/containerd/main.go @@ -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 }