mirror of
https://github.com/opencontainers/runc.git
synced 2025-10-20 14:15:34 +08:00
Container must not checkpoint in created state
Signed-off-by: rajasec <rajasec79@gmail.com>
This commit is contained in:
@@ -38,6 +38,13 @@ checkpointed.`,
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
status, err := container.Status()
|
||||||
|
if err != nil {
|
||||||
|
return(err)
|
||||||
|
}
|
||||||
|
if status == libcontainer.Created {
|
||||||
|
fatalf("Container cannot be checkpointed in created state")
|
||||||
|
}
|
||||||
defer destroy(container)
|
defer destroy(container)
|
||||||
options := criuOptions(context)
|
options := criuOptions(context)
|
||||||
// these are the mandatory criu options for a container
|
// these are the mandatory criu options for a container
|
||||||
|
Reference in New Issue
Block a user