1 Star 0 Fork 0

xiaods / runc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
checkpoint-restore.md 1.70 KB
一键复制 编辑 原始数据 按行查看 历史

Checkpoint and Restore

For a basic description about checkpointing and restoring containers with runc please see runc-checkpoint(8) and runc-restore(8).

Checkpoint/Restore Annotations

In addition to specifying options on the command-line like it is described in the man-pages (see above), it is also possible to influence CRIU's behaviour using CRIU configuration files. For details about CRIU's configuration file support please see CRIU's wiki.

In addition to CRIU's default configuration files runc tells CRIU to also evaluate the file /etc/criu/runc.conf. Using the annotation org.criu.config it is, however, possible to change this additional CRIU configuration file.

If the annotation org.criu.config is set to an empty string runc will not pass any additional configuration file to CRIU. With an empty string it is therefore possible to disable the additional CRIU configuration file. This can be used to make sure that no additional configuration file changes CRIU's behaviour accidentally.

If the annotation org.criu.config is set to a non-empty string runc will pass that string to CRIU to be evaluated as an additional configuration file. If CRIU cannot open this additional configuration file, it will ignore this file and continue.

Annotation Example to disable additional CRIU configuration file

{
	"ociVersion": "1.0.0",
	"annotations": {
		"org.criu.config": ""
	},
	"process": {

Annotation Example to set a specific CRIU configuration file

{
	"ociVersion": "1.0.0",
	"annotations": {
		"org.criu.config": "/etc/special-runc-criu-options"
	},
	"process": {
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/xds2000/runc.git
git@gitee.com:xds2000/runc.git
xds2000
runc
runc
main

搜索帮助

344bd9b3 5694891 D2dac590 5694891