Merge pull request #12662 from adrianreber/2021-12-20-checkpoint-restore-man-pages

[CI:DOCS] Small checkpoint/restore man page fixes
This commit is contained in:
OpenShift Merge Robot 2021-12-21 14:46:20 +01:00 committed by GitHub
commit f3d6672c7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -39,7 +39,7 @@ root file-system, if not explicitly disabled using **--ignore-rootfs**.
If a checkpoint is exported to a tar.gz file it is possible with the help of **--ignore-rootfs** to explicitly disable including changes to the root file-system into the checkpoint archive file.\ If a checkpoint is exported to a tar.gz file it is possible with the help of **--ignore-rootfs** to explicitly disable including changes to the root file-system into the checkpoint archive file.\
The default is **false**.\ The default is **false**.\
*IMPORTANT: This OPTION only works in combination with **--export, -e**.* *IMPORTANT: This OPTION only works in combination with __--export, -e__.*
#### **--ignore-volumes** #### **--ignore-volumes**
@ -124,7 +124,7 @@ The default is **false**.
Check out the *container* with previous criu image files in pre-dump. It only works on `runc 1.0-rc3` or `higher`.\ Check out the *container* with previous criu image files in pre-dump. It only works on `runc 1.0-rc3` or `higher`.\
The default is **false**.\ The default is **false**.\
*IMPORTANT: This OPTION is not available with **--pre-checkpoint***. *IMPORTANT: This OPTION is not available with __--pre-checkpoint__*.
## EXAMPLES ## EXAMPLES

View File

@ -39,7 +39,7 @@ The default is **false**.\
If a *container* is restored from a checkpoint tar.gz file it is possible that it also contains all root file-system changes. With **--ignore-rootfs** it is possible to explicitly disable applying these root file-system changes to the restored *container*.\ If a *container* is restored from a checkpoint tar.gz file it is possible that it also contains all root file-system changes. With **--ignore-rootfs** it is possible to explicitly disable applying these root file-system changes to the restored *container*.\
The default is **false**.\ The default is **false**.\
*IMPORTANT: This OPTION is only available in combination with **--import, -i**.* *IMPORTANT: This OPTION is only available in combination with __--import, -i__.*
#### **--ignore-static-ip** #### **--ignore-static-ip**
@ -98,14 +98,14 @@ If the **--name, -n** option is used, Podman will not attempt to assign the same
address to the *container* it was using before checkpointing as each IP address can only address to the *container* it was using before checkpointing as each IP address can only
be used once and the restored *container* will have another IP address. This also means be used once and the restored *container* will have another IP address. This also means
that **--name, -n** cannot be used in combination with **--tcp-established**.\ that **--name, -n** cannot be used in combination with **--tcp-established**.\
*IMPORTANT: This OPTION is only available in combination with **--import, -i**.* *IMPORTANT: This OPTION is only available in combination with __--import, -i__.*
#### **--pod**=*name* #### **--pod**=*name*
Restore a container into the pod *name*. The destination pod for this restore Restore a container into the pod *name*. The destination pod for this restore
has to have the same namespaces shared as the pod this container was checkpointed has to have the same namespaces shared as the pod this container was checkpointed
from (see **[podman pod create --share](podman-pod-create.1.md#--share)**). from (see **[podman pod create --share](podman-pod-create.1.md#--share)**).\
*IMPORTANT: This OPTION is only available in combination with **--import, -i**.* *IMPORTANT: This OPTION is only available in combination with __--import, -i__.*
This option requires at least CRIU 3.16. This option requires at least CRIU 3.16.
@ -168,7 +168,7 @@ Import a checkpoint file and a pre-checkpoint file.
# podman container restore --import-previous pre-checkpoint.tar.gz --import checkpoint.tar.gz # podman container restore --import-previous pre-checkpoint.tar.gz --import checkpoint.tar.gz
``` ```
Remove the container "mywebserver". Make a checkpoint of the container and export it. Restore the container with other port ranges from the exported file. Start the container "mywebserver". Make a checkpoint of the container and export it. Restore the container with other port ranges from the exported file.
``` ```
$ podman run --rm -p 2345:80 -d webserver $ podman run --rm -p 2345:80 -d webserver
# podman container checkpoint -l --export=dump.tar # podman container checkpoint -l --export=dump.tar