From: Filip Schauer Date: Tue, 16 Sep 2025 09:52:27 +0000 (+0200) Subject: doc: add lxc.environment.{runtime, hooks} X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e0290fa;p=thirdparty%2Flxc.git doc: add lxc.environment.{runtime, hooks} Signed-off-by: Filip Schauer --- diff --git a/doc/lxc.container.conf.sgml.in b/doc/lxc.container.conf.sgml.in index 20ae63fd4..39efffbe5 100644 --- a/doc/lxc.container.conf.sgml.in +++ b/doc/lxc.container.conf.sgml.in @@ -2990,7 +2990,14 @@ - This configuration parameter can be specified multiple times; once + Subkeys are available to narrow the scope of environment variables: + lxc.environment.runtime applies only to + the container's init process (and all its descendents), + and lxc.environment.hooks applies only to hooks. + + + + These configuration parameters can be specified multiple times; once for each environment variable you wish to configure. @@ -3001,8 +3008,8 @@ - Specify an environment variable to pass into the container. - Example: + Environment variables applied both to the container init process + and to hooks. Example: lxc.environment = APP_ENV=production @@ -3017,6 +3024,29 @@ + + + + + + + + Environment variables applied only to the container's init + process. + + + + + + + + + + + Environment variables applied only to hooks. + + +