Permalink
Browse files

stopped container can't be checkpoint

Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
  • Loading branch information...
Ma Shimiao
Ma Shimiao committed Dec 7, 2017
1 parent e8149af commit 5061fd3e6e1338f797e1090b7f5146bca6ed3c0b
Showing with 2 additions and 2 deletions.
  1. +2 −2 checkpoint.go
View
@@ -56,8 +56,8 @@ checkpointed.`,
if err != nil {
return err
}
if status == libcontainer.Created {
fatalf("Container cannot be checkpointed in created state")
if status == libcontainer.Created || status == libcontainer.Stopped {
fatalf("Container cannot be checkpointed in %s state", status.String())
}
defer destroy(container)
options := criuOptions(context)

0 comments on commit 5061fd3

Please sign in to comment.