Implement checkpoint / restore for shim
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
835f3b6a97
commit
277cc920a4
8 changed files with 258 additions and 93 deletions
|
@ -16,6 +16,7 @@ var checkpointCommand = cli.Command{
|
|||
Subcommands: []cli.Command{
|
||||
listCheckpointCommand,
|
||||
createCheckpointCommand,
|
||||
deleteCheckpointCommand,
|
||||
},
|
||||
Action: listCheckpoints,
|
||||
}
|
||||
|
@ -86,7 +87,11 @@ var createCheckpointCommand = cli.Command{
|
|||
if _, err := c.CreateCheckpoint(netcontext.Background(), &types.CreateCheckpointRequest{
|
||||
Id: containerID,
|
||||
Checkpoint: &types.Checkpoint{
|
||||
Name: name,
|
||||
Name: name,
|
||||
Exit: context.Bool("exit"),
|
||||
Tcp: context.Bool("tcp"),
|
||||
Shell: context.Bool("shell"),
|
||||
UnixSockets: context.Bool("unix-sockets"),
|
||||
},
|
||||
}); err != nil {
|
||||
fatal(err.Error(), 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue