From caae4b298a7558a201e9f830ab4844dc85f8cb1d Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Sun, 18 Sep 2016 17:00:37 +0200 Subject: [PATCH] create sandboxdir on server startup Signed-off-by: Antonio Murdaca --- server/server.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/server.go b/server/server.go index 3fbfe3d5..923427a1 100644 --- a/server/server.go +++ b/server/server.go @@ -86,6 +86,10 @@ func New(runtimePath, sandboxDir, containerDir string) (*Server, error) { return nil, err } + if err := os.MkdirAll(sandboxDir, 0755); err != nil { + return nil, err + } + r, err := oci.New(runtimePath, containerDir) if err != nil { return nil, err