|
@@ -154,7 +154,8 @@ func (c *container) Start(ctx context.Context, checkpointDir string, withStdin b
|
|
if checkpointDir != "" {
|
|
if checkpointDir != "" {
|
|
// write checkpoint to the content store
|
|
// write checkpoint to the content store
|
|
tar := archive.Diff(ctx, "", checkpointDir)
|
|
tar := archive.Diff(ctx, "", checkpointDir)
|
|
- cp, err := c.client.writeContent(ctx, images.MediaTypeContainerd1Checkpoint, checkpointDir, tar)
|
|
|
|
|
|
+ var err error
|
|
|
|
+ cp, err = c.client.writeContent(ctx, images.MediaTypeContainerd1Checkpoint, checkpointDir, tar)
|
|
// remove the checkpoint when we're done
|
|
// remove the checkpoint when we're done
|
|
defer func() {
|
|
defer func() {
|
|
if cp != nil {
|
|
if cp != nil {
|