Changes

m
Line 1: Line 1:    −
Many of CRIU's command-line options can also be influenced via configuration files. Configuration files are evaluated in [[CLI]] and [[RPC]] mode. It is important to know that configuration files are evaluated before the options set via CLI or RPC (except for the RPC configuration file). This means that whatever is configured in the configuration files will be overwritten by explicitly set values via CLI or RPC.
+
Many of CRIU's command-line options can also be influenced via configuration files. These files are evaluated in [[CLI]] and [[RPC]] modebefore the options set via CLI or RPC (except for the RPC configuration file). This means that whatever is configured in the files will be overwritten by explicitly set values via CLI or RPC.
    
=== Configuration File Location ===
 
=== Configuration File Location ===
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 ===
603

edits