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
79dff39e
Commit
79dff39e
authored
Mar 03, 2016
by
KATOH Yasufumi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: add copy hook explanation to Japanese lxc-copy(1)
Update for commit
cc0607a9
Signed-off-by:
KATOH Yasufumi
<
karma@jazz.email.ne.jp
>
parent
dfc76168
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
lxc-copy.sgml.in
doc/ja/lxc-copy.sgml.in
+28
-0
No files found.
doc/ja/lxc-copy.sgml.in
View file @
79dff39e
...
@@ -64,6 +64,7 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
...
@@ -64,6 +64,7 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
<arg choice="opt">-K, --keepdata</arg>
<arg choice="opt">-K, --keepdata</arg>
<arg choice="opt">-M, --keepmac</arg>
<arg choice="opt">-M, --keepmac</arg>
<arg choice="opt">-L, --fssize <replaceable>size [unit]</replaceable></arg>
<arg choice="opt">-L, --fssize <replaceable>size [unit]</replaceable></arg>
<arg choice="opt">-- hook arguments</arg>
</cmdsynopsis>
</cmdsynopsis>
<cmdsynopsis>
<cmdsynopsis>
<command>lxc-copy</command>
<command>lxc-copy</command>
...
@@ -77,6 +78,7 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
...
@@ -77,6 +78,7 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
<arg choice="opt">-K, --keepdata</arg>
<arg choice="opt">-K, --keepdata</arg>
<arg choice="opt">-M, --keepmac</arg>
<arg choice="opt">-M, --keepmac</arg>
<arg choice="opt">-L, --fssize <replaceable>size [unit]</replaceable></arg>
<arg choice="opt">-L, --fssize <replaceable>size [unit]</replaceable></arg>
<arg choice="opt">-- hook arguments</arg>
</cmdsynopsis>
</cmdsynopsis>
<cmdsynopsis>
<cmdsynopsis>
<command>lxc-copy</command>
<command>lxc-copy</command>
...
@@ -316,6 +318,32 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
...
@@ -316,6 +318,32 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
</refsect1>
</refsect1>
<refsect1>
<title><!-- Copy hook -->コピー時のフック</title>
<para>
<!--
If the container being copied has one or more
<filename>lxc.hook.clone</filename> specified, then the specified hooks
will be called for the new container. The first 3 arguments passed to the
clone hook will be the container name, a section ('lxc'), and the hook
type ('clone'). Extra arguments passed to <command>lxc-copy</command> will
be passed to the hook program starting at argument 4. The
<filename>LXC_ROOTFS_MOUNT</filename> environment variable gives
the path under which the container's root filesystem is mounted. The
configuration file pathname is stored in
<filename>LXC_CONFIG_FILE</filename>, the new container name in
<filename>LXC_NAME</filename>, the old container name in
<filename>LXC_SRC_NAME</filename>, and the path or device on which the
rootfs is located is in <filename>LXC_ROOTFS_PATH</filename>.
-->
コピーされるコンテナに 1 つ以上の <filename>lxc.hook.clone</filename> の指定が存在する場合、指定されたフックは新しいコンテナに対して呼ばれます。
クローンフックに渡される最初の 3 つの引数は、コンテナ名、セクション ('lxc')、フックタイプ ('clone') となります。
<command>lxc-copy</command> に渡される追加の引数は、フックプログラムに渡される引数の 4 番目以降となります。
<filename>LXC_ROOTFS_MOUNT</filename> 環境変数には、コンテナの root ファイルシステムがマウントされるパスが与えられます。
設定ファイルのパス名は <filename>LXC_CONFIG_FILE</filename> に、新しいコンテナ名は <filename>LXC_NAME</filename>、古いコンテナ名は <filename>LXC_SRC_NAME</filename> に、rootfs のあるパスまたはデバイスは <filename>LXC_ROOTFS_PATH</filename> に保存されます。
</para>
</refsect1>
&commonoptions;
&commonoptions;
&seealso;
&seealso;
...
...
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