Skip to content

Commit 5061fd3

Browse files
author
Ma Shimiao
committed
stopped container can't be checkpoint
Signed-off-by: Ma Shimiao <[email protected]>
1 parent e8149af commit 5061fd3

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)