Change c/r leaverunning to exit
This allows the default checkpoint functionality to leave the container running after it has been checkpointed. Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
c10b3cde9f
commit
e21364603e
4 changed files with 17 additions and 10 deletions
|
@ -217,7 +217,7 @@ func (c *libcontainerContainer) Checkpoint(cp runtime.Checkpoint) error {
|
|||
|
||||
func (c *libcontainerContainer) createCheckpointOpts(cp *runtime.Checkpoint) *libcontainer.CriuOpts {
|
||||
opts := libcontainer.CriuOpts{}
|
||||
opts.LeaveRunning = cp.Running
|
||||
opts.LeaveRunning = !cp.Exit
|
||||
opts.ShellJob = cp.Shell
|
||||
opts.TcpEstablished = cp.Tcp
|
||||
opts.ExternalUnixConnections = cp.UnixSockets
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue