mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
Merge pull request #8819 from chen-zhuohan/add-pre-checkpoint
Add pre-checkpoint and restore with previous
This commit is contained in:
@ -58,12 +58,26 @@ This option must be used in combination with the **--export, -e** option.
|
||||
When this option is specified, the content of volumes associated with
|
||||
the container will not be included into the checkpoint tar.gz file.
|
||||
|
||||
#### **--pre-checkpoint**, **-P**
|
||||
|
||||
Dump the container's memory information only, leaving the container running. Later
|
||||
operations will supersede prior dumps. It only works on runc 1.0-rc3 or higher.
|
||||
|
||||
#### **--with-previous**
|
||||
|
||||
Check out the container with previous criu image files in pre-dump. It only works
|
||||
without **--pre-checkpoint** or **-P**. It only works on runc 1.0-rc3 or higher.
|
||||
|
||||
## EXAMPLE
|
||||
|
||||
podman container checkpoint mywebserver
|
||||
|
||||
podman container checkpoint 860a4b23
|
||||
|
||||
podman container checkpoint -P -e pre-checkpoint.tar.gz -l
|
||||
|
||||
podman container checkpoint --with-previous -e checkpoint.tar.gz -l
|
||||
|
||||
## SEE ALSO
|
||||
podman(1), podman-container-restore(1)
|
||||
|
||||
|
@ -48,6 +48,11 @@ Import a checkpoint tar.gz file, which was exported by Podman. This can be used
|
||||
to import a checkpointed container from another host. Do not specify a *container*
|
||||
argument when using this option.
|
||||
|
||||
#### **--import-previous**
|
||||
|
||||
Import a pre-checkpoint tar.gz file which was exported by Podman. This option
|
||||
must be used with **-i** or **--import**. It only works on runc 1.0-rc3 or higher.
|
||||
|
||||
#### **--name**, **-n**
|
||||
|
||||
This is only available in combination with **--import, -i**. If a container is restored
|
||||
@ -98,6 +103,8 @@ podman container restore mywebserver
|
||||
|
||||
podman container restore 860a4b23
|
||||
|
||||
podman container restore --import-previous pre-checkpoint.tar.gz --import checkpoint.tar.gz
|
||||
|
||||
## SEE ALSO
|
||||
podman(1), podman-container-checkpoint(1)
|
||||
|
||||
|
Reference in New Issue
Block a user