Start runc in detached mode when restoring a checkpoint (#312)
Without this the shim cannot detect the death of the init process. Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
parent
4f0a33ac3d
commit
3a65d238a9
1 changed files with 1 additions and 0 deletions
|
@ -135,6 +135,7 @@ func (p *process) create() error {
|
|||
)
|
||||
} else if p.checkpoint != nil {
|
||||
args = append(args, "restore",
|
||||
"-d",
|
||||
"--image-path", p.checkpointPath,
|
||||
"--work-path", filepath.Join(p.checkpointPath, "criu.work", "restore-"+time.Now().Format(time.RFC3339)),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue