lxc-copy.sgml.in revision 842948e4162d89ffce0e8cd292702598d736489a
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi<!--
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumilxc: linux Container library
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi(C) Copyright Canonical Inc. 2007, 2008
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiAuthors:
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiChristian Brauner <christian.brauner at mailbox.org>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiThis library is free software; you can redistribute it and/or
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumimodify it under the terms of the GNU Lesser General Public
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiLicense as published by the Free Software Foundation; either
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumiversion 2.1 of the License, or (at your option) any later version.
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiThis library is distributed in the hope that it will be useful,
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumibut WITHOUT ANY WARRANTY; without even the implied warranty of
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiLesser General Public License for more details.
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiYou should have received a copy of the GNU Lesser General Public
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiLicense along with this library; if not, write to the Free Software
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiTranslated into Japanese
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumiby KATOH Yasufumi <karma at jazz.email.ne.jp>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi-->
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi<!DOCTYPE refentry PUBLIC @docdtd@ [
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi<!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml">
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi<!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi]>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi<refentry>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <refmeta>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <refentrytitle>lxc-copy</refentrytitle>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <manvolnum>1</manvolnum>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </refmeta>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <refnamediv>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <refname>lxc-copy</refname>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <refpurpose>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <!--
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi copy an existing container.
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi -->
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi 既存のコンテナのコピー
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </refpurpose>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </refnamediv>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <refsynopsisdiv>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <cmdsynopsis>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <command>lxc-copy</command>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <arg choice="req">-n, --name <replaceable>name</replaceable></arg>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <arg choice="opt">-P, --lxcpath <replaceable>path</replaceable></arg>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <arg choice="req">-N, --newname <replaceable>newname</replaceable></arg>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <arg choice="opt">-p, --newpath <replaceable>newpath</replaceable></arg>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <arg choice="opt">-B, --backingstorage <replaceable>backingstorage</replaceable></arg>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <arg choice="opt">-s, --snapshot</arg>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <arg choice="opt">-K, --keepdata</arg>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <arg choice="opt">-M, --keepmac</arg>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <arg choice="opt">-L, --fssize <replaceable>size [unit]</replaceable></arg>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </cmdsynopsis>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <cmdsynopsis>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <command>lxc-copy</command>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <arg choice="req">-n, --name <replaceable>name</replaceable></arg>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <arg choice="opt">-P, --lxcpath <replaceable>path</replaceable></arg>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <arg choice="opt">-N, --newname <replaceable>newname</replaceable></arg>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <arg choice="opt">-p, --newpath <replaceable>newpath</replaceable></arg>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <arg choice="req">-e, --ephemeral</arg>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <arg choice="opt">-B, --backingstorage <replaceable>backingstorage</replaceable></arg>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <arg choice="opt">-s, --snapshot</arg>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <arg choice="opt">-K, --keepdata</arg>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <arg choice="opt">-M, --keepmac</arg>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <arg choice="opt">-L, --fssize <replaceable>size [unit]</replaceable></arg>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </cmdsynopsis>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <cmdsynopsis>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <command>lxc-copy</command>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <arg choice="req">-n, --name <replaceable>name</replaceable></arg>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <arg choice="opt">-P, --lxcpath <replaceable>path</replaceable></arg>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <arg choice="req">-N, --newname <replaceable>newname</replaceable></arg>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <arg choice="opt">-p, --newpath <replaceable>newpath</replaceable></arg>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <arg choice="req">-R, --rename</arg>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </cmdsynopsis>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </refsynopsisdiv>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <refsect1>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <title><!-- Description -->説明</title>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <para>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <!--
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <command>lxc-copy</command> creates and optionally starts (ephemeral or
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi non-ephemeral) copies of existing containers. It replaces
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <command>lxc-clone</command> and <command>lxc-start-ephemeral</command>.
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi -->
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <command>lxc-copy</command> は、すでに存在するコンテナのコピーを作成します。オプションを指定することで、作成後にそのコピーを起動できます (コピーは一時的なコピーまたは永続的なコピーのどちらも可能です)。
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi このコマンドは <command>lxc-clone</command> と <command>lxc-start-ephemeral</command> の置き換えのコマンドです。
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </para>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <para>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <!--
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <command>lxc-copy</command> creates copies of existing containers. Copies
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi can be complete clones of the original container. In this case the whole
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi root filesystem of the container is simply copied to the new container. Or
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi they can be snapshots, i.e. small copy-on-write copies of the original
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi container. In this case the specified backing storage for the copy must
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi support snapshots. This currently includes aufs, btrfs, lvm (lvm devices
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi do not support snapshots of snapshots.), overlay, and zfs.
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi -->
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <command>lxc-copy</command> は、既存のコンテナのコピーを作成します。
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi コピーは元のコンテナの完全なクローンにできます。この場合、単にコンテナのルートファイルシステムのすべてが、新しいコンテナにコピーされます。
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi また、スナップショットを取得することも可能です。すなわち、元のコンテナの小さなコピーオンライトのコピーにするということです。この場合、コピーで指定するバッキングストレージがスナップショットをサポートしている必要があります。
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi スナップショットをサポートしているバッキングストレージは、現時点では aufs、btrfs、lvm (lvm デバイスはスナップショットのスナップショットはサポートしていません)、overlay、zfs です。
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </para>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <para>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <!--
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi The copy's backing storage will be of the same type as the original
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi container. aufs or overlayfs snapshots of directory backed containers are
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi exempted from this rule.
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi -->
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi コピー先のバッキングストレージは、元のコンテナと同じタイプになるでしょう。ただし、ディレクトリバックエンドのコンテナのスナップショットは aufs と overlayfs で取得できますので例外です。
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </para>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <para>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <!--
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi When the <replaceable>-e</replaceable> flag is specified an ephemeral
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi snapshot of the original container is created and started. Ephemeral
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi containers will have <command>lxc.ephemeral = 1</command> set in their
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi config file and will be destroyed on shutdown. When
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <replaceable>-e</replaceable> is used in combination with
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <replaceable>-D</replaceable> a non-ephemeral snapshot of the original
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi container is created and started.
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi -->
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <replaceable>-e</replaceable> オプションを指定した場合は、元のコンテナの一時的なスナップショットを作成し、起動します。一時的なコンテナの場合、設定ファイルに <command>lxc.ephemeral = 1</command> がセットされ、シャットダウン後に削除されます。
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <replaceable>-e</replaceable> と <replaceable>-D</replaceable> を同時に指定すると、元のコンテナの一時的ではないスナップショットを作成し、起動します。
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </para>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <para>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <!--
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi When <replaceable>-e</replaceable> is specified and no newname is given via
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <replaceable>-N</replaceable> a random name for the snapshot will be chosen.
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi -->
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <replaceable>-e</replaceable> を指定した場合で、<replaceable>-N</replaceable> で newname としてコンテナの名前を指定しない場合は、スナップショットの名前はランダムで命名されます。
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </para>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <para>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <!--
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi Containers created and started with <replaceable>-e</replaceable> can have
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi custom mounts. These are specified with the <replaceable>-m</replaceable>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi flag. Currently three types of mounts are supported:
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <replaceable>aufs</replaceable>, <replaceable>bind</replaceable>, and
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <replaceable>overlay</replaceable>. Mount types are specified as suboptions
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi to the <replaceable>-m</replaceable> flag and can be specified multiple
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi times separated by commas. <replaceable>aufs</replaceable> and
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <replaceable>overlay</replaceable> mounts are currently specified in the
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi format <replaceable>-m overlay=/src:/dest</replaceable>. When no
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi destination <replaceable>dest</replaceable> is specified
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <replaceable>dest</replaceable> will be identical to
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <replaceable>src</replaceable>. Read-only <replaceable>bind</replaceable>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi mounts are specified <replaceable>-m bind=/src:/dest:ro</replaceable> and
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi read-write <replaceable>bind</replaceable> mounts <replaceable>-m
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi bind=/src:/dest:rw</replaceable>. Read-write <replaceable>bind</replaceable>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi mounts are the default and <replaceable>rw</replaceable> can be missing when
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi a read-write mount is wanted. When <replaceable>dest</replaceable> is
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi missing <replaceable>dest</replaceable> will be identical to
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <replaceable>src</replaceable>. An example for multiple mounts would be
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <replaceable>-m
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi bind=/src1:/dest1:ro,bind=/src2:ro,overlay=/src3:/dest3</replaceable>.
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi -->
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <replaceable>-e</replaceable> で作成し、起動したコンテナは、コンテナ独自のマウントを行えます。現時点では <replaceable>aufs</replaceable>、<replaceable>bind</replaceable>、<replaceable>overlay</replaceable> という 3 つのタイプのマウントがサポートされています。
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi マウントタイプは <replaceable>-m</replaceable> オプションのサブオプションとして指定します。この指定はカンマ区切りで複数回指定できます。
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <replaceable>aufs</replaceable> と <replaceable>overlay</replaceable> マウントの場合は、現時点では <replaceable>-m overlay=/src:/dest</replaceable> のように指定します。マウント先の <replaceable>dest</replaceable> を指定しない場合は、<replaceable>dest</replaceable> は <replaceable>src</replaceable> と同じになります。
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi 読み込み専用の <replaceable>bind</replaceable> マウントは <replaceable>-m bind=/src:/dest:ro</replaceable> のように指定します。読み書き可能な <replaceable>bind</replaceable> マウントは <replaceable>-m bind=/src:/dest:rw</replaceable> のように指定します。<replaceable>bind</replaceable> マウントのデフォルトは読み書き可能ですので、読み書き可能なマウントを行う場合は省略できます。マウント先の <replaceable>dest</replaceable> を指定しない場合は、<replaceable>dest</replaceable> は <replaceable>src</replaceable> と同じになります。
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi 複数のマウントを行う場合の例を示すと、<replaceable>-m bind=/src1:/dest1:ro,bind=/src2:ro,overlay=/src3:/dest3</replaceable> のようになります。
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </para>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <para>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <!--
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi The mounts, their options, and formats supported via the
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <replaceable>-m</replaceable> flag are subject to change.
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi -->
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <replaceable>-m</replaceable> オプションで指定するマウント、オプション、指定フォーマットは変更される可能性があります。
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </para>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </refsect1>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <refsect1>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <title><!-- Options -->オプション</title>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <variablelist>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <varlistentry>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <term> <option>-N,--newname <replaceable>newname</replaceable></option> </term>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <listitem>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <para><!-- The name for the copy. -->コピー先のコンテナの名前。</para>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </listitem>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </varlistentry>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <varlistentry>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <term> <option>-p,--newpath <replaceable>newpath</replaceable></option> </term>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <listitem>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <para><!-- The path for the copy. -->コピー先のパス。</para>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </listitem>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </varlistentry>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <varlistentry>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <term> <option>-R,--rename </option> </term>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <listitem>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <para><!-- Rename the original container. -->元のコンテナをリネームします。</para>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </listitem>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </varlistentry>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <varlistentry>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <term> <option>-s,--snapshot </option> </term>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <listitem>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <para><!-- Create a snapshot of the orginal container. The backing
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi storage for the copy must support snapshots. This currently includes
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi aufs, btrfs, lvm, overlay, and zfs. -->
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi 元のコンテナのスナップショットを作成します。コピー先のバッキングストレージがスナップショットをサポートしている必要があります。現時点では aufs、btrfs、lvm、overlay、zfs が対象となります。
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </para>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </listitem>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </varlistentry>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <varlistentry>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <term> <option>-F,--foreground</option> </term>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <listitem>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <para><!-- Run the snapshot in the foreground. The snapshots console will
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi be attached to the current tty. (This option can only be specified
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi in conjunction with <replaceable>-e</replaceable>.) -->
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi スナップショットしたコンテナをフォアグラウンドで起動します。スナップショットしたコンテナのコンソールは現在の tty にアタッチされます。(このオプションは <replaceable>-e</replaceable> と同時の場合のみ指定できます。)
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </para>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </listitem>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </varlistentry>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <varlistentry>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <term> <option>-d, --daemon</option> </term>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <listitem>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <para><!-- Run the snapshot as a daemon (This is the default mode for
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi ephemeral containers.). As the container has no more tty, if an
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi error occurs nothing will be displayed, the log file can
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi be used to check the error. (This option can only be specified in
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi conjunction with <replaceable>-e</replaceable>.) -->
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi スナップショットしたコンテナをデーモンで起動します (一時的なコンテナではこのモードがデフォルトです)。
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi コンテナは tty を持ちませんので、エラーが発生しても何も表示されません。エラーをチェックするにはログファイルを使います。(このオプションは <replaceable>-e</replaceable> と同時の場合のみ指定できます。)
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </para>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </listitem>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </varlistentry>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <varlistentry>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <term> <option>-m, --mount <replaceable>mounttype</replaceable></option> </term>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <listitem>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <para><!-- Specify a mount for a snapshot The
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <replaceable>opts</replaceable> argument for the mount type can by
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi of type {aufs, bind, overlay}. For example <option>-m
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi bind=/src:/dest:ro,overlay=/src:/dest</option> (This option can
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi currently only be specified in conjunction with
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <replaceable>-e</replaceable>.). --></para>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi スナップショットするコンテナで行うマウントを指定します。マウントタイプは {aufs, bind, overlay} のどれかで指定します。例えば <option>-m bind=/src:/dest:ro,overlay=/src:/dest</option> のようになります。(このオプションは <replaceable>-e</replaceable> と同時の場合のみ指定できます。)
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </listitem>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </varlistentry>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <varlistentry>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <term> <option>-B, --backingstorage <replaceable>backingstorage</replaceable></option></term>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <listitem>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <para><!-- Specify the backing storage type to be used for the copy
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi where 'backingstorage' is of type 'aufs', 'btrfs', 'dir', 'lvm', 'loop',
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi 'overlay', or 'zfs'. -->
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi コピー先コンテナのバッキングストレージのタイプを指定します。ここで 'backingsotrage' は 'aufs'、'btrfs'、'dir'、'lvm'、'loop'、'overlay'、'zfs' のどれかです。
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </para>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </listitem>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </varlistentry>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <varlistentry>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <term> <option>-L, --fssize <replaceable>size [unit]</replaceable></option></term>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <listitem>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <para><!-- Specify the size for an 'lvm' filesystem. -->'lvm' ファイルシステムのサイズを指定します。</para>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </listitem>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </varlistentry>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <varlistentry>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <term> <option>-D, --keepdata </option></term>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <listitem>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <para><!-- When this option is specified with
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <replaceable>-e</replaceable> a non-ephemeral container is created
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi and started. -->
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <replaceable>-e</replaceable> オプションと同時にこのオプションを使うと、一時的でないコンテナを作成し、起動します。
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </para>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </listitem>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </varlistentry>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <varlistentry>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <term> <option>-K, --keepname </option></term>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <listitem>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <para><!-- When this option is specified the hostname of the original
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi container will be kept for the copy. -->
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi このオプションを指定すると、元のコンテナのホスト名をコピー先でもそのまま使います。
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </para>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </listitem>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </varlistentry>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <varlistentry>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <term> <option>-M, --keepmac </option></term>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <listitem>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <para><!-- When this option is specified the MAC address of the original
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi container will be kept for the copy. -->
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi このオプションを指定すると、元のコンテナの MAC アドレスをコピー先でもそのまま使います。
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </para>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </listitem>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </varlistentry>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </variablelist>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </refsect1>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi &commonoptions;
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi &seealso;
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <refsect1>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <title>Author</title>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi <para>Christian Brauner <email>christian.brauner@mailbox.org</email></para>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi </refsect1>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi</refentry>
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi<!-- Keep this comment at the end of the file
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiLocal variables:
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumimode: sgml
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumisgml-omittag:t
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumisgml-shorttag:t
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumisgml-minimize-attributes:nil
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumisgml-always-quote-attributes:t
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumisgml-indent-step:2
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumisgml-indent-data:t
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumisgml-parent-document:nil
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumisgml-default-dtd-file:nil
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumisgml-exposed-tags:nil
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumisgml-local-catalogs:nil
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumisgml-local-ecat-files:nil
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiEnd:
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi-->