Merge pull request #1669 from Mashimiao/stopped-checkpoint
stopped container can't be checkpoint
This commit is contained in:
commit
bdee9adedc
|
@ -56,8 +56,8 @@ checkpointed.`,
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if status == libcontainer.Created {
|
if status == libcontainer.Created || status == libcontainer.Stopped {
|
||||||
fatalf("Container cannot be checkpointed in created state")
|
fatalf("Container cannot be checkpointed in %s state", status.String())
|
||||||
}
|
}
|
||||||
defer destroy(container)
|
defer destroy(container)
|
||||||
options := criuOptions(context)
|
options := criuOptions(context)
|
||||||
|
|
Loading…
Reference in New Issue