Skip to content

Commit

Permalink
doc: Add the description of lxc.environment to Japanese lxc.container…
Browse files Browse the repository at this point in the history
….conf(5)

Update for commit 7c66172

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
  • Loading branch information
tenforward authored and stgraber committed Aug 4, 2014
1 parent 36c94e0 commit 9231d3a
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions doc/ja/lxc.container.conf.sgml.in
Expand Up @@ -2118,6 +2118,55 @@ mknod errno 0
</para>

</refsect2>

<refsect2>
<title><!-- Container Environment -->コンテナの環境変数</title>
<para>
<!--
If you want to pass environment variables into the container (that
is, environment variables which will be available to init and all of
its descendents), you can use <command>lxc.environment</command>
parameters to do so. Be careful that you do not pass in anything
sensitive; any process in the container which doesn't have its
environment scrubbed will have these variables available to it, and
environment variables are always available via
<command>/proc/PID/environ</command>.
-->
コンテナに環境変数を渡したい場合 (環境変数はコンテナの init とその子孫全てで利用可能です)、<command>lxc.environment</command> パラメータがその用途に使えます。
機微 (センシティブ) な情報を渡さないように注意が必要です。そのような情報を持たないコンテナ内のプロセスでこれらの環境変数が利用可能になってしまいます。環境変数は常に <command>/proc/PID/environ</command> 経由で利用可能になります。
</para>

<para>
<!--
This configuration parameter can be specified multiple times; once
for each environment variable you wish to configure.
-->
この設定項目は、設定したい環境変数ごとに 1 度ずつ、何度でも指定できます。
</para>

<variablelist>
<varlistentry>
<term>
<option>lxc.environment</option>
</term>
<listitem>
<para>
<!--
Specify an environment variable to pass into the container.
Example:
-->
コンテナに渡したい環境変数を指定します。
例:
</para>
<programlisting>
lxc.environment = APP_ENV=production
lxc.environment = SYSLOG_SERVER=192.0.2.42
</programlisting>
</listitem>
</varlistentry>
</variablelist>
</refsect2>

</refsect1>

<refsect1>
Expand Down

0 comments on commit 9231d3a

Please sign in to comment.