Changes

Jump to navigation Jump to search
847 bytes added ,  17:05, 20 May 2025
m
no edit summary
Line 1: Line 1: −
This article describes the status of CRIU integration with [https://podman.io/ Podman], and how to use it.
+
This article provides an overview of CRIU integration with Podman and explains how to use it. For more detailed information on the available Podman options, please refer to the [https://podman.io/docs/checkpoint documentation] and [https://docs.podman.io/en/latest/markdown/podman-container-checkpoint.1.html man pages].
 +
 
 +
{{Note|Podman checkpoint/restore currently supports only root containers. Therefore, you have to run the example container as root.}}
    
== Container Checkpoint/Restore ==
 
== Container Checkpoint/Restore ==
Line 117: 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
590

edits

Navigation menu