Merge pull request #37360 from bjbroder/checkpoint-exit
Fix checkpoint's exiting semantics. Upstream-commit: c3a02077149ea8ee1d53b2b60a3d36c29d1505f8 Component: engine
This commit is contained in:
@ -561,7 +561,11 @@ func (c *client) CreateCheckpoint(ctx context.Context, containerID, checkpointDi
|
||||
return err
|
||||
}
|
||||
|
||||
img, err := p.(containerd.Task).Checkpoint(ctx)
|
||||
opts := []containerd.CheckpointTaskOpts{}
|
||||
if exit {
|
||||
opts = append(opts, containerd.WithExit)
|
||||
}
|
||||
img, err := p.(containerd.Task).Checkpoint(ctx, opts...)
|
||||
if err != nil {
|
||||
return wrapError(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user