linux: Pass correct path to runc when doing a checkpoint

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
Kenfe-Mickael Laventure 2017-10-16 10:45:03 -07:00
parent 7f4f4b5e68
commit 71f0bb3e3c
No known key found for this signature in database
GPG Key ID: 40CF16616B361216

View File

@ -343,7 +343,7 @@ func (p *initProcess) checkpoint(context context.Context, r *shimapi.CheckpointT
work := filepath.Join(p.workDir, "criu-work")
defer os.RemoveAll(work)
if err := p.runtime.Checkpoint(context, p.id, &runc.CheckpointOpts{
WorkDir: p.workDir,
WorkDir: work,
ImagePath: r.Path,
AllowOpenTCP: options.OpenTcp,
AllowExternalUnixSockets: options.ExternalUnixSockets,