runc-restore(8)
π runc-restore π
okay so bestie, welcome to runc-restore(8) from the System Manager's Manual β¨ this is the glow-up page that tells you how to bring a container back from the dead. sit down, hydrate, let's go π«Ά
πΈ NAME πΈ
runc-restore β restore a container from a previous checkpoint π
β¨ SYNOPSIS β¨
runc restore [option ...] container-id
π¦ DESCRIPTION π¦
okay so picture this: you already ran runc checkpoint at some point, right? and now you want that container back. That's literally the whole vibe here β runc restore restores the container instance from a previously performed runc checkpoint. it's giving resurrection, it's giving main character energy, no cap π₯
π OPTIONS π
--console-socketpath β path to anAF_UNIXsocket that's gonna receive a file descriptor pointing at the master end of the console's pseudoterminal. seedocs/terminalshttps://github.com/opencontainers/runc/blob/master/docs/terminals.md. π--image-pathpath β set the path to grab the criu image files you're restoring from.--work-pathpath β set the path for saving criu work files and logs. the default is to reuse the image files directory, periodt.--tcp-establishedβ allow checkpoint/restore of established TCP connections. see the criu--tcp-establisedoption athttps://criu.org/CLI/opt/--tcp-established. π--ext-unix-skβ allow checkpoint/restore of external unix sockets. see the criu--ext-unix-skoption athttps://criu.org/CLI/opt/--ext-unix-sk.--shell-jobβ allow checkpoint/restore of shell jobs. π--file-locksβ allow checkpoint/restore of file locks. see the criu--file-locksoption athttps://criu.org/CLI/opt/--file-locks.--manage-cgroups-modesoft|full|strict|ignore.β cgroups mode. default issoft. see the criu--manage-cgroupsoption athttps://criu.org/CLI/opt/--manage-cgroups. π
specifically, if you wanna restore the container into a different cgroup, you have to use --manage-cgroups-mode ignore during both checkpoint and restore, and the _containerid (or the cgroupsPath property in the OCI config, if it's set) has to be changed. that's the rule, i don't make them π
--bundle,-bpath β path to the root of the bundle directory. default is the current directory. π--detach,-dβ detach from the container's process. bye bestie π--pid-filepath β specify the file to write the initial container process' PID to.--no-subreaperβ disable the use of the subreaper used to reap reparented processes.--no-pivotβ do not use pivot root to jail the process inside the rootfs.
β οΈ lowkey this should not be used except in exceptional circumstances, and it may be unsafe from the security standpoint. fr fr, be careful π¨
--empty-nsnamespace β create a namespace, but don't restore its properties. see the criu--empty-nsoption athttps://criu.org/CLI/opt/--empty-ns.--auto-dedupβ enable auto deduplication of memory images. see the criu--auto-dedupoption athttps://criu.org/CLI/opt/--auto-dedup. β¨--lazy-pagesβ use the lazy migration mechanism. this requires a running criu lazy-pages daemon. see the criu--lazy-pagesoption athttps://criu.org/CLI/opt/--lazy-pages. π€--lsm-profiletype:label β specify an LSM profile to be used during restore. here type can either beapparamororselinux, 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-contextcontext β specify an LSM mount context to be used during restore. only mounts with an existing context will have their context replaced. with this option it's 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).
and that's the whole page bestie π this one was signed off as runc-restore(8), from the System Manager's Manual β go forth and restore, you've got this π«Άβ¨π
π¦ where this page comes from
- alpine 3.24: runc-doc 1.4.3-r2 Β· Apache-2.0
- arch rolling: runc 1.5.2-1 Β· Apache
- fedora 43: runc 2:1.3.1-1.fc43 Β· Apache-2.0 and BSD-2-Clause and BSD-3-Clause and MIT
- fedora 43: runc 2:1.5.2-3.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT AND MPL-2.0
- fedora 44: runc 2:1.4.1-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT AND MPL-2.0
- fedora 44: runc 2:1.5.2-3.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT AND MPL-2.0
- nixpkgs unstable: runc 1.5.2
- ubuntu resolute: runc 1.4.0-0ubuntu1 Β· Apache-2.0
- ubuntu resolute: runc-stable 1.3.4-0ubuntu1 Β· Apache-2.0
- ubuntu stonking: runc 1.5.1-0ubuntu2 Β· Apache-2.0
- ubuntu stonking: runc-stable 1.5.1-0ubuntu2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms