create sandboxdir on server startup
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
99a086420b
commit
caae4b298a
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue