Files
Adrian Reber b0572d6229 Added option to keep containers running after checkpointing
CRIU supports to leave processes running after checkpointing:

  -R|--leave-running    leave tasks in running state after checkpoint

runc also support to leave containers running after checkpointing:

   --leave-running      leave the process running after checkpointing

With this commit the support to leave a container running after
checkpointing is brought to Podman:

   --leave-running, -R  leave the container running after writing checkpoint to disk

Now it is possible to checkpoint a container at some point in time
without stopping the container. This can be used to rollback the
container to an early state:

$ podman run --tmpfs /tmp --name podman-criu-test -d docker://docker.io/yovfiatbeb/podman-criu-test
$ curl 10.88.64.253:8080/examples/servlets/servlet/HelloWorldExample
3
$ podman container checkpoint -R -l
$ curl 10.88.64.253:8080/examples/servlets/servlet/HelloWorldExample
4
$ curl 10.88.64.253:8080/examples/servlets/servlet/HelloWorldExample
5
$ podman stop -l
$ podman container restore -l
$ curl 10.88.64.253:8080/examples/servlets/servlet/HelloWorldExample
4

So after checkpointing the container kept running and was stopped after
some time. Restoring this container will restore the state right at the
checkpoint.

Signed-off-by: Adrian Reber <areber@redhat.com>
2018-11-20 17:25:44 +01:00
..
2018-08-16 17:12:36 +00:00
2018-10-17 17:04:19 -05:00
2017-11-01 11:24:59 -04:00
2018-04-05 14:13:49 +00:00
2018-11-09 09:41:57 +01:00
2018-08-23 15:01:17 +00:00
2018-08-23 15:01:17 +00:00
2018-08-24 19:19:43 +00:00
2018-10-17 17:04:19 -05:00
2018-08-23 18:16:28 +00:00
2018-10-03 12:45:37 -05:00
2018-08-15 18:07:04 +00:00
2018-03-14 20:21:31 +00:00
2018-10-31 00:27:08 +01:00