Skip to content

Commit 5b72f23

Browse files
committed
Merge pull request #14 from huikang/fix-checkpoint-state-todisk
Set Checkpointed state to true in config file after checkpoint
2 parents 2791165 + 7f6c9b2 commit 5b72f23

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

daemon/container_checkpoint.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ func (container *Container) Checkpoint(opts *runconfig.CriuConfig) error {
1515
if opts.LeaveRunning == false {
1616
container.ReleaseNetwork()
1717
}
18+
19+
if err := container.ToDisk(); err != nil {
20+
return fmt.Errorf("Cannot update config for container: %s", err)
21+
}
22+
1823
return nil
1924
}
2025

0 commit comments

Comments
 (0)