create sandboxdir on server startup

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2016-09-18 17:00:37 +02:00
parent 99a086420b
commit caae4b298a
No known key found for this signature in database
GPG key ID: B2BEAD150DE936B9

View file

@ -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