From 3a65d238a94890465b0247993c99412b5755cfd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kenfe-Micka=C3=ABl=20Laventure?= Date: Wed, 7 Sep 2016 09:26:37 -0700 Subject: [PATCH] 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 --- containerd-shim/process.go | 1 + 1 file changed, 1 insertion(+) diff --git a/containerd-shim/process.go b/containerd-shim/process.go index 6fafa762a..ed9874860 100644 --- a/containerd-shim/process.go +++ b/containerd-shim/process.go @@ -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)), )