| 1 |
<!-- SPDX-License-Identifier: LGPL-2.1+ --> |
| 2 |
|
| 3 |
<!DOCTYPE refentry PUBLIC @docdtd@ [ |
| 4 |
|
| 5 |
<!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml"> |
| 6 |
<!ENTITY seealso SYSTEM "@builddir@/see_also.sgml"> |
| 7 |
]> |
| 8 |
|
| 9 |
<refentry> |
| 10 |
|
| 11 |
<docinfo><date>@LXC_GENERATE_DATE@</date></docinfo> |
| 12 |
|
| 13 |
<refmeta> |
| 14 |
<refentrytitle>lxc-copy</refentrytitle> |
| 15 |
<manvolnum>1</manvolnum> |
| 16 |
</refmeta> |
| 17 |
|
| 18 |
<refnamediv> |
| 19 |
<refname>lxc-copy</refname> |
| 20 |
|
| 21 |
<refpurpose> |
| 22 |
<!-- |
| 23 |
copy an existing container. |
| 24 |
--> |
| 25 |
존재하는 컨테이너 복사 |
| 26 |
</refpurpose> |
| 27 |
</refnamediv> |
| 28 |
|
| 29 |
<refsynopsisdiv> |
| 30 |
<cmdsynopsis> |
| 31 |
<command>lxc-copy</command> |
| 32 |
<arg choice="req">-n, --name <replaceable>name</replaceable></arg> |
| 33 |
<arg choice="opt">-P, --lxcpath <replaceable>path</replaceable></arg> |
| 34 |
<arg choice="req">-N, --newname <replaceable>newname</replaceable></arg> |
| 35 |
<arg choice="opt">-p, --newpath <replaceable>newpath</replaceable></arg> |
| 36 |
<arg choice="opt">-B, --backingstorage <replaceable>backingstorage</replaceable></arg> |
| 37 |
<arg choice="opt">-s, --snapshot</arg> |
| 38 |
<arg choice="opt">-a, --allowrunning</arg> |
| 39 |
<arg choice="opt">-K, --keepname</arg> |
| 40 |
<arg choice="opt">-D, --keepdata</arg> |
| 41 |
<arg choice="opt">-M, --keepmac</arg> |
| 42 |
<arg choice="opt">-L, --fssize <replaceable>size [unit]</replaceable></arg> |
| 43 |
<arg choice="opt">-- hook arguments</arg> |
| 44 |
</cmdsynopsis> |
| 45 |
<cmdsynopsis> |
| 46 |
<command>lxc-copy</command> |
| 47 |
<arg choice="req">-n, --name <replaceable>name</replaceable></arg> |
| 48 |
<arg choice="opt">-P, --lxcpath <replaceable>path</replaceable></arg> |
| 49 |
<arg choice="opt">-N, --newname <replaceable>newname</replaceable></arg> |
| 50 |
<arg choice="opt">-p, --newpath <replaceable>newpath</replaceable></arg> |
| 51 |
<arg choice="req">-e, --ephemeral</arg> |
| 52 |
<arg choice="opt">-B, --backingstorage <replaceable>backingstorage</replaceable></arg> |
| 53 |
<arg choice="opt">-s, --snapshot</arg> |
| 54 |
<arg choice="opt">-a, --allowrunning</arg> |
| 55 |
<arg choice="opt">-K, --keepname</arg> |
| 56 |
<arg choice="opt">-D, --keepdata</arg> |
| 57 |
<arg choice="opt">-M, --keepmac</arg> |
| 58 |
<arg choice="opt">-L, --fssize <replaceable>size [unit]</replaceable></arg> |
| 59 |
<arg choice="opt">-- hook arguments</arg> |
| 60 |
</cmdsynopsis> |
| 61 |
<cmdsynopsis> |
| 62 |
<command>lxc-copy</command> |
| 63 |
<arg choice="req">-n, --name <replaceable>name</replaceable></arg> |
| 64 |
<arg choice="opt">-P, --lxcpath <replaceable>path</replaceable></arg> |
| 65 |
<arg choice="opt">-N, --newname <replaceable>newname</replaceable></arg> |
| 66 |
<arg choice="opt">-p, --newpath <replaceable>newpath</replaceable></arg> |
| 67 |
<arg choice="req">-e, --ephemeral</arg> |
| 68 |
<arg choice="opt">-B, --backingstorage <replaceable>backingstorage</replaceable></arg> |
| 69 |
<arg choice="opt">-s, --snapshot</arg> |
| 70 |
<arg choice="opt">-t, --tmpfs</arg> |
| 71 |
<arg choice="opt">-K, --keepname</arg> |
| 72 |
<arg choice="opt">-M, --keepmac</arg> |
| 73 |
<arg choice="opt">-- hook arguments</arg> |
| 74 |
</cmdsynopsis> |
| 75 |
<cmdsynopsis> |
| 76 |
<command>lxc-copy</command> |
| 77 |
<arg choice="req">-n, --name <replaceable>name</replaceable></arg> |
| 78 |
<arg choice="opt">-P, --lxcpath <replaceable>path</replaceable></arg> |
| 79 |
<arg choice="req">-N, --newname <replaceable>newname</replaceable></arg> |
| 80 |
<arg choice="opt">-p, --newpath <replaceable>newpath</replaceable></arg> |
| 81 |
<arg choice="req">-R, --rename</arg> |
| 82 |
</cmdsynopsis> |
| 83 |
</refsynopsisdiv> |
| 84 |
|
| 85 |
<refsect1> |
| 86 |
<title><!-- Description -->설명</title> |
| 87 |
|
| 88 |
<para> |
| 89 |
<!-- |
| 90 |
<command>lxc-copy</command> creates and optionally starts (ephemeral or |
| 91 |
non-ephemeral) copies of existing containers. It replaces |
| 92 |
<command>lxc-clone</command> and <command>lxc-start-ephemeral</command>. |
| 93 |
--> |
| 94 |
<command>lxc-copy</command>는 존재하는 컨테이너의 (임시적 또는 영구적) 복사본을 생성하고, 옵션에 따라 시작하기도 한다. <command>lxc-clone</command>와 <command>lxc-start-ephemeral</command>를 대체한다. |
| 95 |
</para> |
| 96 |
<para> |
| 97 |
<!-- |
| 98 |
<command>lxc-copy</command> creates copies of existing containers. Copies |
| 99 |
can be complete clones of the original container. In this case the whole |
| 100 |
root filesystem of the container is simply copied to the new container. Or |
| 101 |
they can be snapshots, i.e. small copy-on-write copies of the original |
| 102 |
container. In this case the specified backing storage for the copy must |
| 103 |
support snapshots. This currently includes aufs, btrfs, lvm (lvm devices |
| 104 |
do not support snapshots of snapshots.), overlay, and zfs. |
| 105 |
--> |
| 106 |
<command>lxc-copy</command>는 존재하는 컨테이너의 복사본을 생성한다. 복사본은 원본 컨테이너를 말그대로 복사한 것일 수 있다. 이 경우 컨테이너의 전체 루트 파일시스템은 단순히 새로운 컨테이너로 복사된다. |
| 107 |
또는, 원본 컨테이너를 copy-on-write한 것과 같이 스냅샷이 될 수 있다. 이 경우 복사본을 위해 지정한 저장소는 스냅샷을 지원하여야 한다. 이러한 저장소에는 현재 aufs, btrfs, lvm (lvm 장치는 스냅샷의 스냅샷은 지원하지 않음), overlay, zfs가 있다. |
| 108 |
</para> |
| 109 |
|
| 110 |
<para> |
| 111 |
<!-- |
| 112 |
The copy's backing storage will be of the same type as the original |
| 113 |
container. aufs or overlayfs snapshots of directory backed containers are |
| 114 |
exempted from this rule. |
| 115 |
--> |
| 116 |
복사본의 저장소는 원본 컨테이너와 같은 종류가 된다. 단, aufs나 디렉토리로 구성된 컨테이너의 overlayfs 스냅샷은 예외이다. |
| 117 |
</para> |
| 118 |
|
| 119 |
<para> |
| 120 |
<!-- |
| 121 |
When the <replaceable>-e</replaceable> flag is specified an ephemeral |
| 122 |
snapshot of the original container is created and started. Ephemeral |
| 123 |
containers will have <command>lxc.ephemeral = 1</command> set in their |
| 124 |
config file and will be destroyed on shutdown. When |
| 125 |
<replaceable>-e</replaceable> is used in combination with |
| 126 |
<replaceable>-D</replaceable> a non-ephemeral snapshot of the original |
| 127 |
container is created and started. |
| 128 |
Ephemeral containers can also be placed on a tmpfs with <replaceable>-t</replaceable> |
| 129 |
flag. NOTE: If an ephemeral container that is placed on a tmpfs is rebooted |
| 130 |
all changes made to it will currently be lost! |
| 131 |
--> |
| 132 |
<replaceable>-e</replaceable>가 지정되면, 원본 컨테이너의 임시 스냅샷이 생성되고 시작된다. 임시 컨테이너는 자신의 설정파일 안에 <command>lxc.ephemeral = 1</command>를 가지게 되며, 종료시에 제거된다. <replaceable>-e</replaceable>와 함께 <replaceable>-D</replaceable>를 같이 지정하면 원본 컨테이너의 영구적인 스냅샷이 생성되고 실행된다. |
| 133 |
<replaceable>-t</replaceable>를 지정하면, 임시 컨테이너는 tmpfs 상에 놓이게 된다. |
| 134 |
주의: tmpfs 상에 놓인 임시 컨테이너는 재부팅시 모든 변경 사항이 사라진다. |
| 135 |
</para> |
| 136 |
|
| 137 |
<para> |
| 138 |
<!-- |
| 139 |
When <replaceable>-e</replaceable> is specified and no newname is given via |
| 140 |
<replaceable>-N</replaceable> a random name for the snapshot will be chosen. |
| 141 |
--> |
| 142 |
<replaceable>-e</replaceable>는 지정하고 <replaceable>-N</replaceable>으로 새이름을 지정하지 않으면, 무작위로 이름을 정한다. |
| 143 |
</para> |
| 144 |
|
| 145 |
<para> |
| 146 |
<!-- |
| 147 |
Containers created and started with <replaceable>-e</replaceable> can have |
| 148 |
custom mounts. These are specified with the <replaceable>-m</replaceable> |
| 149 |
flag. Currently three types of mounts are supported: |
| 150 |
<replaceable>aufs</replaceable>, <replaceable>bind</replaceable>, and |
| 151 |
<replaceable>overlay</replaceable>. Mount types are specified as suboptions |
| 152 |
to the <replaceable>-m</replaceable> flag and can be specified multiple |
| 153 |
times separated by commas. <replaceable>aufs</replaceable> and |
| 154 |
<replaceable>overlay</replaceable> mounts are currently specified in the |
| 155 |
format <replaceable>-m overlay=/src:/dest</replaceable>. When no |
| 156 |
destination <replaceable>dest</replaceable> is specified |
| 157 |
<replaceable>dest</replaceable> will be identical to |
| 158 |
<replaceable>src</replaceable>. Read-only <replaceable>bind</replaceable> |
| 159 |
mounts are specified <replaceable>-m bind=/src:/dest:ro</replaceable> and |
| 160 |
read-write <replaceable>bind</replaceable> mounts <replaceable>-m |
| 161 |
bind=/src:/dest:rw</replaceable>. Read-write <replaceable>bind</replaceable> |
| 162 |
mounts are the default and <replaceable>rw</replaceable> can be missing when |
| 163 |
a read-write mount is wanted. When <replaceable>dest</replaceable> is |
| 164 |
missing <replaceable>dest</replaceable> will be identical to |
| 165 |
<replaceable>src</replaceable>. An example for multiple mounts would be |
| 166 |
<replaceable>-m |
| 167 |
bind=/src1:/dest1:ro,bind=/src2:ro,overlay=/src3:/dest3</replaceable>. |
| 168 |
--> |
| 169 |
<replaceable>-e</replaceable>로 생성되고 실행되는 컨테이너들은 자신만의 마운트를 가질 수 있다. 이는 <replaceable>-m</replaceable>으로 지정된다. 현재 지원하는 마운트의 형식은 <replaceable>aufs</replaceable>, <replaceable>bind</replaceable>, <replaceable>overlay</replaceable>의 세 종류이다. 마운트 형식은 <replaceable>-m</replaceable>의 추가 인수로 지정된다. 그리고 쉼표(,)로 구분하여 여러번 지정할 수 있다. <replaceable>aufs</replaceable>와 <replaceable>overlay</replaceable> 마운트는 현재 <replaceable>-m overlay=/src:/dest</replaceable>와 같이 지정한다. <replaceable>dest</replaceable>의 대상이 지정되지 않았다면 <replaceable>dest</replaceable>는 <replaceable>src</replaceable>와 동일한 값을 가진다. |
| 170 |
읽기 전용 <replaceable>bind</replaceable> 마운트는 <replaceable>-m bind=/src:/dest:ro</replaceable>로 읽기쓰기 가능 <replaceable>bind</replaceable>마운트는 <replaceable>-m bind=/src:/dest:rw</replaceable>로 지정한다. 읽기쓰기 가능 <replaceable>bind</replaceable> 마운트가 기본값이므로, 읽기쓰기 가능을 원한다면 <replaceable>rw</replaceable>은 빼도 무관하다. <replaceable>dest</replaceable>를 생략했다면 마찬가지로 <replaceable>dest</replaceable>는 <replaceable>src</replaceable>와 같다. 여러번 마운트는 <replaceable>-m bind=/src1:/dest1:ro,bind=/src2:ro,overlay=/src3:/dest3</replaceable>와 같이 가능하다. |
| 171 |
</para> |
| 172 |
|
| 173 |
<para> |
| 174 |
<!-- |
| 175 |
The mounts, their options, and formats supported via the |
| 176 |
<replaceable>-m</replaceable> flag are subject to change. |
| 177 |
--> |
| 178 |
<replaceable>-m</replaceable>를 통해 지원되는 마운트, 옵션, 형식은 변경될 수 있다. |
| 179 |
</para> |
| 180 |
</refsect1> |
| 181 |
|
| 182 |
<refsect1> |
| 183 |
|
| 184 |
<title><!-- Options -->옵션</title> |
| 185 |
|
| 186 |
<variablelist> |
| 187 |
|
| 188 |
<varlistentry> |
| 189 |
<term> <option>-N,--newname <replaceable>newname</replaceable></option> </term> |
| 190 |
<listitem> |
| 191 |
<para><!-- The name for the copy. -->복사본의 이름</para> |
| 192 |
</listitem> |
| 193 |
</varlistentry> |
| 194 |
|
| 195 |
<varlistentry> |
| 196 |
<term> <option>-p,--newpath <replaceable>newpath</replaceable></option> </term> |
| 197 |
<listitem> |
| 198 |
<para><!-- The path for the copy. -->복사본의 경로</para> |
| 199 |
</listitem> |
| 200 |
</varlistentry> |
| 201 |
|
| 202 |
<varlistentry> |
| 203 |
<term> <option>-R,--rename </option> </term> |
| 204 |
<listitem> |
| 205 |
<para><!-- Rename the original container. -->원본 컨테이너의 이름 변경</para> |
| 206 |
</listitem> |
| 207 |
</varlistentry> |
| 208 |
|
| 209 |
<varlistentry> |
| 210 |
<term> <option>-s,--snapshot </option> </term> |
| 211 |
<listitem> |
| 212 |
<para> |
| 213 |
<!-- |
| 214 |
Create a snapshot of the original container. The backing |
| 215 |
storage for the copy must support snapshots. This currently includes |
| 216 |
aufs, btrfs, lvm, overlay, and zfs. |
| 217 |
--> |
| 218 |
원본 컨테이너의 스냅샷을 생성한다. 복사본의 저장소는 반드시 스냅샷을 지원해야 한다. 현재 aufs, btrfs, lvm, overlay, zfs가 가능하다. |
| 219 |
</para> |
| 220 |
</listitem> |
| 221 |
</varlistentry> |
| 222 |
|
| 223 |
<varlistentry> |
| 224 |
<term> <option>-a,--allowrunning </option> </term> |
| 225 |
<listitem> |
| 226 |
<para> |
| 227 |
<!-- |
| 228 |
Allow the creation of a Snapshot of an already running container. |
| 229 |
This may cause data corruption or data loss depending on the used |
| 230 |
filesystem and applications. Use with care. |
| 231 |
--> |
| 232 |
이미 동작중인 컨테이너의 스냅샷 생성을 허용한다. 이 작업은 사용되고 있는 파일시스템 또는 어플리케이션들에 따라 데이터 변형 또는 손실을 야기할 수도 있다. |
| 233 |
신중히 사용해야 한다. |
| 234 |
</para> |
| 235 |
</listitem> |
| 236 |
</varlistentry> |
| 237 |
|
| 238 |
<varlistentry> |
| 239 |
<term> <option>-F,--foreground</option> </term> |
| 240 |
<listitem> |
| 241 |
<para> |
| 242 |
<!-- |
| 243 |
Run the snapshot in the foreground. The snapshots console will |
| 244 |
be attached to the current tty. (This option can only be specified |
| 245 |
in conjunction with <replaceable>-e</replaceable>.) |
| 246 |
--> |
| 247 |
스냅샷을 포그라운드로 실행한다. 스냅샷 콘솔은 현재 tty에 붙게 된다. (이 옵션은 <replaceable>-e</replaceable> 옵션이랑만 사용 가능하다.) |
| 248 |
</para> |
| 249 |
</listitem> |
| 250 |
</varlistentry> |
| 251 |
|
| 252 |
<varlistentry> |
| 253 |
<term> <option>-d, --daemon</option> </term> |
| 254 |
<listitem> |
| 255 |
<para> |
| 256 |
<!-- |
| 257 |
Run the snapshot as a daemon (This is the default mode for |
| 258 |
ephemeral containers.). As the container has no more tty, if an |
| 259 |
error occurs nothing will be displayed, the log file can |
| 260 |
be used to check the error. (This option can only be specified in |
| 261 |
conjunction with <replaceable>-e</replaceable>.) |
| 262 |
--> |
| 263 |
데몬으로 스냅샷을 실행한다. (이는 임시 컨테이너의 기본 모드이다.) 오류가 발생하더라도 컨테이너가 tty를 가지지 않기 때문에 오류는 표시되지 않는다. |
| 264 |
대신 로그 파일을 사용해 로그를 확인할 수 있다. 이 옵션은 <replaceable>-e</replaceable> 옵션이랑만 사용 가능하다.) |
| 265 |
</para> |
| 266 |
</listitem> |
| 267 |
</varlistentry> |
| 268 |
|
| 269 |
<varlistentry> |
| 270 |
<term> <option>-m, --mount <replaceable>mounttype</replaceable></option> </term> |
| 271 |
<listitem> |
| 272 |
<para> |
| 273 |
<!-- |
| 274 |
Specify a mount for a snapshot The |
| 275 |
<replaceable>opts</replaceable> argument for the mount type can by |
| 276 |
of type {aufs, bind, overlay}. For example <option>-m |
| 277 |
bind=/src:/dest:ro,overlay=/src:/dest</option> (This option can |
| 278 |
currently only be specified in conjunction with |
| 279 |
<replaceable>-e</replaceable>.). |
| 280 |
--> |
| 281 |
스냅샷의 마운트를 지정한다. 마운트 형식을 위한 <replaceable>opts</replaceable> 인자는 aufs, bind, overlay를 사용 가능하다. 예를 들면 <option>-m bind=/src:/dest:ro,overlay=/src:/dest</option>이다. 이 옵션은 <replaceable>-e</replaceable> 옵션이랑만 사용 가능하다.) |
| 282 |
</para> |
| 283 |
</listitem> |
| 284 |
</varlistentry> |
| 285 |
|
| 286 |
<varlistentry> |
| 287 |
<term> <option>-t, --tmpfs </option></term> |
| 288 |
<listitem> |
| 289 |
<para><!-- When this option is specified the ephemeral container will be |
| 290 |
+ placed on a tmpfs. NOTE: Rebooting an ephemeral container that is |
| 291 |
located on a tmpfs will currently cause all changes made to it to be |
| 292 |
lost. This flag will only work for ephemeral containers created with |
| 293 |
the <replaceable>-e</replaceable> flag. The original container, from |
| 294 |
which the ephemeral snapshot is created, must be stored as a simple |
| 295 |
directory. --> |
| 296 |
이 옵션이 지정되면 임시 컨테이너는 tmpfs 상에 놓이게 된다. |
| 297 |
주의: tmpfs 상에 놓인 임시 컨테이너는 재부팅시 모든 변경 사항이 사라진다. |
| 298 |
이 옵션은 <replaceable>-e</replaceable>를 지정하여 임시 컨테이너를 생성할 때만 사용이 가능하다. 임시 스냅샷을 생성한 원본 컨테이너는 반드시 일반적인 디렉토리에 위치하고 있어야 한다. |
| 299 |
</para> </listitem> |
| 300 |
</varlistentry> |
| 301 |
|
| 302 |
<varlistentry> |
| 303 |
<term> <option>-B, --backingstorage <replaceable>backingstorage</replaceable></option></term> |
| 304 |
<listitem> |
| 305 |
<para> |
| 306 |
<!-- |
| 307 |
Specify the backing storage type to be used for the copy |
| 308 |
where 'backingstorage' is of type 'aufs', 'btrfs', 'dir', 'lvm', 'loop', |
| 309 |
'overlay', or 'zfs'. |
| 310 |
--> |
| 311 |
복사본이 사용할 저장소의 형식을 지정한다. 'backingstorage'에는 'aufs', 'btrfs', 'dir', 'lvm', 'loop', 'overlay','zfs'이 사용 가능하다. |
| 312 |
</para> |
| 313 |
</listitem> |
| 314 |
</varlistentry> |
| 315 |
|
| 316 |
<varlistentry> |
| 317 |
<term> <option>-L, --fssize <replaceable>size [unit]</replaceable></option></term> |
| 318 |
<listitem> |
| 319 |
<para><!-- Specify the size for an 'lvm' filesystem. --> |
| 320 |
'lvm' 파일시스템의 크기를 지정한다. |
| 321 |
</para> |
| 322 |
</listitem> |
| 323 |
</varlistentry> |
| 324 |
|
| 325 |
<varlistentry> |
| 326 |
<term> <option>-K, --keepname </option></term> |
| 327 |
<listitem> |
| 328 |
<para> |
| 329 |
<!-- |
| 330 |
When this option is specified the hostname of the original |
| 331 |
container will be kept for the copy. |
| 332 |
--> |
| 333 |
이 옵션이 지정되면 원본 컨테이너의 호스트이름이 복사본에서도 그대로 유지된다. |
| 334 |
</para> |
| 335 |
</listitem> |
| 336 |
</varlistentry> |
| 337 |
|
| 338 |
<varlistentry> |
| 339 |
<term> <option>-D, --keepdata </option></term> |
| 340 |
<listitem> |
| 341 |
<para> |
| 342 |
<!-- |
| 343 |
When this option is specified with |
| 344 |
<replaceable>-e</replaceable> a non-ephemeral container is created |
| 345 |
and started.--> |
| 346 |
이 옵션을 <replaceable>-e</replaceable>와 지정하면 영구적인 컨테이너가 생성되고 시작된다. |
| 347 |
</para> |
| 348 |
</listitem> |
| 349 |
</varlistentry> |
| 350 |
|
| 351 |
<varlistentry> |
| 352 |
<term> <option>-M, --keepmac </option></term> |
| 353 |
<listitem> |
| 354 |
<para> |
| 355 |
<!-- |
| 356 |
When this option is specified the MAC address of the original |
| 357 |
container will be kept for the copy. |
| 358 |
--> |
| 359 |
이 옵션이 지정되면 원본 컨테이너의 MAC 주소가 복사본에서도 그대로 유지된다. |
| 360 |
</para> |
| 361 |
</listitem> |
| 362 |
</varlistentry> |
| 363 |
|
| 364 |
</variablelist> |
| 365 |
|
| 366 |
</refsect1> |
| 367 |
|
| 368 |
<refsect1> |
| 369 |
<title><!-- Copy hook -->복사 훅</title> |
| 370 |
<para> |
| 371 |
<!-- |
| 372 |
If the container being copied has one or more |
| 373 |
<filename>lxc.hook.clone</filename> specified, then the specified hooks |
| 374 |
will be called for the new container. The first 3 arguments passed to the |
| 375 |
clone hook will be the container name, a section ('lxc'), and the hook |
| 376 |
type ('clone'). Extra arguments passed to <command>lxc-copy</command> will |
| 377 |
be passed to the hook program starting at argument 4. The |
| 378 |
<filename>LXC_ROOTFS_MOUNT</filename> environment variable gives |
| 379 |
the path under which the container's root filesystem is mounted. The |
| 380 |
configuration file pathname is stored in |
| 381 |
<filename>LXC_CONFIG_FILE</filename>, the new container name in |
| 382 |
<filename>LXC_NAME</filename>, the old container name in |
| 383 |
<filename>LXC_SRC_NAME</filename>, and the path or device on which the |
| 384 |
rootfs is located is in <filename>LXC_ROOTFS_PATH</filename>. |
| 385 |
--> |
| 386 |
복사되는 컨테이너에 <filename>lxc.hook.clone</filename>가 하나 이상 지정되어 있다면, 지정한 훅들은 새로운 컨테이너를 위해 실핼될 것이다. |
| 387 |
clone 훅에게 넘겨지는 처음 3개 인자들은 컨테이너 이름, 섹션 ('lxc'), 훅의 종류 ('clone')이 될 것이다. |
| 388 |
<command>lxc-copy</command>에 넘겨지는 추가 인자들은 훅 프로그램에 4번째 인자부터 넘겨지기 시작한다. |
| 389 |
<filename>LXC_ROOTFS_MOUNT</filename> 환경 변수는 컨테이너의 루트 파일시스템이 마운트되어 있는 경로를 담고 있다. |
| 390 |
설정 파일의 경로 이름은 <filename>LXC_CONFIG_FILE</filename>에, 새 컨테이너의 이름은 <filename>LXC_NAME</filename>에, 원본 컨테이너의 이름은 <filename>LXC_SRC_NAME</filename>에, 그리고 루트 파일시스템이 위치하고 있는 경로나 디바이스는 <filename>LXC_ROOTFS_PATH</filename>에 각각 담겨 있다. |
| 391 |
</para> |
| 392 |
</refsect1> |
| 393 |
|
| 394 |
&commonoptions; |
| 395 |
|
| 396 |
&seealso; |
| 397 |
|
| 398 |
</refentry> |
| 399 |
|
| 400 |
<!-- Keep this comment at the end of the file |
| 401 |
Local variables: |
| 402 |
mode: sgml |
| 403 |
sgml-omittag:t |
| 404 |
sgml-shorttag:t |
| 405 |
sgml-minimize-attributes:nil |
| 406 |
sgml-always-quote-attributes:t |
| 407 |
sgml-indent-step:2 |
| 408 |
sgml-indent-data:t |
| 409 |
sgml-parent-document:nil |
| 410 |
sgml-default-dtd-file:nil |
| 411 |
sgml-exposed-tags:nil |
| 412 |
sgml-local-catalogs:nil |
| 413 |
sgml-local-ecat-files:nil |
| 414 |
End: |
| 415 |
--> |