Skip to content

Commit bdee9ad

Browse files
Merge pull request #1669 from Mashimiao/stopped-checkpoint
stopped container can't be checkpoint
2 parents 1d3ab6d + 5061fd3 commit bdee9ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

checkpoint.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ checkpointed.`,
5656
if err != nil {
5757
return err
5858
}
59-
if status == libcontainer.Created {
60-
fatalf("Container cannot be checkpointed in created state")
59+
if status == libcontainer.Created || status == libcontainer.Stopped {
60+
fatalf("Container cannot be checkpointed in %s state", status.String())
6161
}
6262
defer destroy(container)
6363
options := criuOptions(context)

0 commit comments

Comments
 (0)