Changes

Jump to navigation Jump to search
498 bytes added ,  20 May
m
no edit summary
Line 119: Line 119:  
  $ sudo podman rm looper-1 looper-2
 
  $ sudo podman rm looper-1 looper-2
 
  $ sudo podman container restore checkpoint-1 checkpoint-2
 
  $ sudo podman container restore checkpoint-1 checkpoint-2
 +
 +
== Container Pre-Checkpointing ==
 +
 +
The following example demonstrates how to use Podman's pre-checkpoint feature:
 +
 +
$ sudo podman run -d --name looper busybox /bin/sh -c 'i=0; while true; do echo $i; i=$(expr $i + 1); sleep 1; done'
 +
$ sudo podman container checkpoint --pre-checkpoint -l -e /tmp/pre.tar
 +
$ sudo podman container checkpoint --with-previous --export /tmp/test.tar.gz -l
 +
$ sudo podman rm -l
 +
$ sudo podman container restore --import /tmp/test.tar.gz --import-previous /tmp/pre.tar
509

edits

Navigation menu