Merge pull request #1648 from mlaventure/checkpoint-workdir

linux: Pass correct path to runc when doing a checkpoint
This commit is contained in:
Michael Crosby 2017-10-16 13:58:47 -04:00 committed by GitHub
commit d28b8cc80d

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,