Make the server process a reaper
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
parent
01e9ac5313
commit
b01d9dcc10
1 changed files with 2 additions and 0 deletions
|
@ -28,6 +28,8 @@ func New(runtimePath, sandboxDir, containerDir string) (*Server, error) {
|
||||||
return nil, fmt.Errorf("failed to set server as subreaper: %v", err)
|
return nil, fmt.Errorf("failed to set server as subreaper: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
utils.StartReaper()
|
||||||
|
|
||||||
if err := os.MkdirAll(imageStore, 0755); err != nil {
|
if err := os.MkdirAll(imageStore, 0755); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue