Changes

m
Line 15: Line 15:     
The user can tell CRIU to completely ignore configuration files in one of the default locations (/etc or $HOME) with the <code>--no-default-config</code> option. In this case the user can still tell CRIU to use a configuration file with the <code>--config FILENAME</code> option. CRIU also honours the environment variable <code>CRIU_CONFIG_FILE</code> just as <code>--config FILENAME</code> option.
 
The user can tell CRIU to completely ignore configuration files in one of the default locations (/etc or $HOME) with the <code>--no-default-config</code> option. In this case the user can still tell CRIU to use a configuration file with the <code>--config FILENAME</code> option. CRIU also honours the environment variable <code>CRIU_CONFIG_FILE</code> just as <code>--config FILENAME</code> option.
 +
 +
Container runtimes such as '''runc''' and '''crun''' (since [https://github.com/containers/crun/releases/tag/1.26 version 1.26]) support container-specific CRIU config file with the [https://github.com/opencontainers/runc/blob/main/docs/checkpoint-restore.md <code>org.criu.config=FILE</code>] annotation, as well as runtime-specific config files that are passed to CRIU via RPC:
 +
 +
* <code>/etc/criu/runc.conf</code>
 +
* <code>/etc/criu/crun.conf</code>
 +
 +
These config files can be used to overwrite the default values of CRIU option set by the container runtime.
    
=== Configuration File Syntax ===
 
=== Configuration File Syntax ===
554

edits