mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 14:13:58 +08:00
Merge pull request #1669 from Mashimiao/stopped-checkpoint
stopped container can't be checkpoint
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user