Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
d0b2a434
Commit
d0b2a434
authored
Oct 09, 2015
by
KATOH Yasufumi
Committed by
Stéphane Graber
Oct 29, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: Add the description of lxc.hook.stop to Japanese lxc.container.conf(5)
Signed-off-by:
KATOH Yasufumi
<
karma@jazz.email.ne.jp
>
Acked-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
parent
06ce3921
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
3 deletions
+32
-3
lxc.container.conf.sgml.in
doc/ja/lxc.container.conf.sgml.in
+32
-3
No files found.
doc/ja/lxc.container.conf.sgml.in
View file @
d0b2a434
...
@@ -1850,9 +1850,12 @@ mknod errno 0
...
@@ -1850,9 +1850,12 @@ mknod errno 0
<listitem><para> Container name. </para></listitem>
<listitem><para> Container name. </para></listitem>
<listitem><para> Section (always 'lxc'). </para></listitem>
<listitem><para> Section (always 'lxc'). </para></listitem>
<listitem><para> The hook type (i.e. 'clone' or 'pre-mount'). </para></listitem>
<listitem><para> The hook type (i.e. 'clone' or 'pre-mount'). </para></listitem>
<listitem><para> Additional arguments In the
<listitem><para> Additional arguments
.
In the
case of the clone hook, any extra arguments passed to
case of the clone hook, any extra arguments passed to
lxc-clone will appear as further arguments to the hook. </para></listitem>
lxc-clone will appear as further arguments to the hook.
In the case of the stop hook, paths to filedescriptors
for each of the container's namespaces along with their types
are passed. </para></listitem>
</itemizedlist>
</itemizedlist>
The following environment variables are set:
The following environment variables are set:
<itemizedlist>
<itemizedlist>
...
@@ -1868,7 +1871,7 @@ mknod errno 0
...
@@ -1868,7 +1871,7 @@ mknod errno 0
<listitem><para>コンテナ名</para></listitem>
<listitem><para>コンテナ名</para></listitem>
<listitem><para>セクション (常に 'lxc')</para></listitem>
<listitem><para>セクション (常に 'lxc')</para></listitem>
<listitem><para>フックのタイプ ('clone' や 'pre-mount' など)</para></listitem>
<listitem><para>フックのタイプ ('clone' や 'pre-mount' など)</para></listitem>
<listitem><para>追加の引数。clone フックの場合、lxc-clone に渡される追加の引数は、フックへの引数として追加されます。</para></listitem>
<listitem><para>追加の引数。clone フックの場合、lxc-clone に渡される追加の引数は、フックへの引数として追加されます。
stop フックの場合は、コンテナの名前空間のそれぞれに対するファイルディスクリプタへのパスが、名前空間名とともに渡されます。
</para></listitem>
</itemizedlist>
</itemizedlist>
以下の環境変数がセットされます。
以下の環境変数がセットされます。
<itemizedlist>
<itemizedlist>
...
@@ -1989,6 +1992,32 @@ mknod errno 0
...
@@ -1989,6 +1992,32 @@ mknod errno 0
</varlistentry>
</varlistentry>
</variablelist>
</variablelist>
<variablelist>
<variablelist>
<varlistentry>
<term>
<option>lxc.hook.stop</option>
</term>
<listitem>
<para>
<!--
A hook to be run in the host's namespace with references
to the container's namespaces after the container has been shut
down. For each namespace an extra argument is passed to the hook
containing the namespace's type and a filename that can be used to
obtain a file descriptor to the corresponding namespace, separated
by a colon. The type is the name as it would appear in the
<filename>/proc/PID/ns</filename> directory.
For instance for the mount namespace the argument usually looks
like <filename>mnt:/proc/PID/fd/12</filename>.
-->
コンテナのシャットダウン後、コンテナの名前空間への参照とともに、ホストの名前空間で実行されるフックです。
それぞれの名前空間に対応する追加の引数がフックに渡されます。その引数にはコロンで区切られた名前空間のタイプ名とファイル名が含まれており、ファイル名は名前空間に対するファイルディスクリプタを取得するのに使えます。
タイプ名は <filename>/proc/PID/ns</filename> ディレクトリ内のファイル名です。
例えば、マウント名前空間に対応する引数は通常は <filename>mnt:/proc/PID/fd/12</filename> のようになります。
</para>
</listitem>
</varlistentry>
</variablelist>
<variablelist>
<varlistentry>
<varlistentry>
<term>
<term>
<option>lxc.hook.post-stop</option>
<option>lxc.hook.post-stop</option>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment