mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Fixing checkpoint issue
Signed-off-by: Rajasekaran <rajasec79@gmail.com>
This commit is contained in:
@@ -30,6 +30,13 @@ var checkpointCommand = cli.Command{
|
||||
fatal(err)
|
||||
}
|
||||
options := criuOptions(context)
|
||||
status, err := container.Status()
|
||||
if err != nil {
|
||||
fatal(err)
|
||||
}
|
||||
if status == libcontainer.Checkpointed {
|
||||
fatal(fmt.Errorf("Container with id %s already checkpointed", context.GlobalString("id")))
|
||||
}
|
||||
// these are the mandatory criu options for a container
|
||||
setPageServer(context, options)
|
||||
if err := container.Checkpoint(options); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user