Scroll to navigation

runc-restore(8) System Manager's Manual runc-restore(8)

NAME

runc-restore - restore a container from a previous checkpoint

SYNOPSIS

runc restore [option ...] container-id

DESCRIPTION

Restores the container instance from a previously performed runc checkpoint.

OPTIONS

Path to an AF_UNIX socket which will receive a file descriptor referencing the master end of the console's pseudoterminal. See docs/terminals ⟨https://github.com/opencontainers/runc/blob/master/docs/terminals.md⟩.

Set path to get criu image files to restore from.

Set path for saving criu work files and logs. The default is to reuse the image files directory.

Allow checkpoint/restore of established TCP connections. See criu --tcp-establised option ⟨https://criu.org/CLI/opt/--tcp-established⟩.

Allow checkpoint/restore of external unix sockets. See criu --ext-unix-sk option ⟨https://criu.org/CLI/opt/--ext-unix-sk⟩.

Allow checkpoint/restore of shell jobs.

Allow checkpoint/restore of file locks. See criu --file-locks option ⟨https://criu.org/CLI/opt/--file-locks⟩.

Cgroups mode. Default is soft. See criu --manage-cgroups option ⟨https://criu.org/CLI/opt/--manage-cgroups⟩.

--manage-cgroups-mode ignore must be used during both checkpoint and restore, and the _containerid (or cgroupsPath property in OCI config, if set) must be changed. --bundle|-b path

--detach|-d

--pid-file path

--no-subreaper

--no-pivot

except in exceptional circumstances, and may be unsafe from the security standpoint. --empty-ns namespace

criu --empty-ns option ⟨https://criu.org/CLI/opt/--empty-ns⟩. --auto-dedup

criu --auto-dedup option ⟨https://criu.org/CLI/opt/--auto-dedup⟩. --lazy-pages

daemon. See criu --lazy-pages option ⟨https://criu.org/CLI/opt/--lazy-pages⟩. --lsm-profile type:label

apparamor or selinux, and label is a valid LSM label. For example, --lsm-profile "selinux:system_u:system_r:container_t:s0:c82,c137". By default, the checkpointed LSM profile is used upon restore. --lsm-mount-context context

existing context will have their context replaced. With this option it is possible to change SELinux mount options. Instead of mounting with the checkpointed context, the specified context will be used. For example, --lsm-mount-context "system_u:object_r:container_file_t:s0:c82,c137".

SEE ALSO

criu(8), runc-checkpoint(8), runc(8).