From e0290fa4aa173f8e5a43adac4e345310bf82ef0f Mon Sep 17 00:00:00 2001 From: Filip Schauer Date: Tue, 16 Sep 2025 11:52:27 +0200 Subject: [PATCH] doc: add lxc.environment.{runtime, hooks} Signed-off-by: Filip Schauer --- doc/lxc.container.conf.sgml.in | 36 +++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) 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. + + + -- 2.47.3