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:
Kenfe-Mickaël Laventure 2016-09-07 09:26:37 -07:00 committed by Michael Crosby
parent 4f0a33ac3d
commit 3a65d238a9

View file

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