@@ -88,7 +88,7 @@ by Sungbae Yoo <sungbae.yoo at samsung.com>
...
@@ -88,7 +88,7 @@ by Sungbae Yoo <sungbae.yoo at samsung.com>
inside the container or the container does not have a working
inside the container or the container does not have a working
nsswitch mechanism.
nsswitch mechanism.
-->
-->
만약 <replaceable>command</replaceable>가 지정되어 있지 않다면, <command>lxc-attach</command>가 실행되어 있는 현재 쉘이 컨테이너 안에 있는지를 검사하고 실행한다.
만약 <replaceable>command</replaceable>가 지정되지 않았다면, <command>lxc-attach</command>가 현재 실행 중인 쉘이 컨테이너 안에도 있는지 검사하고 이를 실행한다.
만약 컨테이너 안에 사용자가 존재하지 않거나, nsswitch가 제대로 동작하지 않는 경우에는 이 명령이 실패하게 된다.
만약 컨테이너 안에 사용자가 존재하지 않거나, nsswitch가 제대로 동작하지 않는 경우에는 이 명령이 실패하게 된다.
</para>
</para>
...
@@ -383,8 +383,8 @@ by Sungbae Yoo <sungbae.yoo at samsung.com>
...
@@ -383,8 +383,8 @@ by Sungbae Yoo <sungbae.yoo at samsung.com>
<replaceable>/sys/class/net</replaceable> and attaching to just
<replaceable>/sys/class/net</replaceable> and attaching to just
the network namespace.
the network namespace.
-->
-->
<option>-s</option> 를 사용하여 컨테이너의 pid 네임스페이스에만 attach 시키고 마운트 네임스페이스(컨테이너의 <replaceable>/proc</replaceable>는 포함하고, 호스트의 것은 포함하지 않는)는 attach 시키지 않는 경우, <option>/proc</option>의 내용은 컨테이너의 것이 아닌 호스트의 것이 됩니다.
<option>-s</option> 를 사용하여 컨테이너의 pid 네임스페이스에만 attach 시키고 마운트 네임스페이스(컨테이너의 <replaceable>/proc</replaceable>는 포함하고, 호스트의 것은 포함하지 않는)는 attach 시키지 않는 경우, <option>/proc</option>의 내용은 컨테이너의 것이 아닌 호스트의 것이 된다.
비슷한 사례로 네트워크 네임스페이스만을 연결 하고 <replaceable>/sys/class/net</replaceable>의 내용을 읽을 때도 같은 현상이 있습니다.
네트워크 네임스페이스만을 연결하고 <replaceable>/sys/class/net</replaceable>의 내용을 읽을 때도 같은 현상이 있다.
</para>
</para>
<para>
<para>
<!--
<!--
...
@@ -399,8 +399,8 @@ by Sungbae Yoo <sungbae.yoo at samsung.com>
...
@@ -399,8 +399,8 @@ by Sungbae Yoo <sungbae.yoo at samsung.com>
except for the <replaceable>/proc</replaceable> and
except for the <replaceable>/proc</replaceable> and
<replaceable>/sys</replaceable> filesystems.
<replaceable>/sys</replaceable> filesystems.
-->
-->
이러한 문제를 해결하기 위해, <option>-R</option> 옵션이 제공됩니다. 해당 옵션은 attach되는 프로세스의 네트워크/pid 네임스페이스를 반영하기 위해 <replaceable>/proc</replaceable>와 <replaceable>/sys</replaceable>를 다시 마운트 합니다.
이러한 문제를 해결하기 위해, <option>-R</option> 옵션이 제공된다. 해당 옵션은 attach되는 프로세스의 네트워크/pid 네임스페이스를 반영하기 위해 <replaceable>/proc</replaceable>와 <replaceable>/sys</replaceable>를 다시 마운트한다.
호스트의 실제 파일시스템에 방해가 되지 않기 위해 마운트 네임스페이스는 공유되지 않습니다(<command>lxc-unshare</command>의 동작과 비슷). <replaceable>/proc</replaceable>와 <replaceable>/sys</replaceable> 파일시스템을 제외하고 호스트 마운트 네임스페이스와 동일한 새로운 마운트 네임스페이스가 주어지게 됩니다.
호스트의 실제 파일시스템에 방해가 되지 않기 위해 마운트 네임스페이스는 공유되지 않는다(<command>lxc-unshare</command>의 동작과 비슷). <replaceable>/proc</replaceable>와 <replaceable>/sys</replaceable> 파일시스템을 제외하고 호스트 마운트 네임스페이스와 동일한 새로운 마운트 네임스페이스가 주어지게 된다.
</para>
</para>
</refsect1>
</refsect1>
...
@@ -412,7 +412,7 @@ by Sungbae Yoo <sungbae.yoo at samsung.com>
...
@@ -412,7 +412,7 @@ by Sungbae Yoo <sungbae.yoo at samsung.com>
be used with care, as it may break the isolation of the containers
be used with care, as it may break the isolation of the containers
if used improperly.
if used improperly.
-->
-->
<option>-e</option>와 <option>-s</option> 옵션을 사용할때는 주의하여야 합니다. 잘못사용하게 하면 컨테이너들 간의 고립(isolation)을 깨트릴 수 있습니다.
<option>-e</option>와 <option>-s</option> 옵션을 사용할때는 주의해야 한다. 잘못 사용하게 하면 컨테이너들 간의 고립(isolation)을 깨트릴 수 있다.
@@ -202,7 +202,7 @@ by Sungbae Yoo <sungbae.yoo at samsung.com>
...
@@ -202,7 +202,7 @@ by Sungbae Yoo <sungbae.yoo at samsung.com>
쉼표(,)로 구분된 선택할 그룹의 리스트.
쉼표(,)로 구분된 선택할 그룹의 리스트.
(기본값은 lxc.group이 없는 것이다 - NULL 그룹)
(기본값은 lxc.group이 없는 것이다 - NULL 그룹)
이 옵션은 여러번 지정될 수 있으며, 각 옵션들은 연결될 수 있다. NULL 또는 빈 그룹은 첫번째 쉼표, 맨 뒤의 쉼표, 두개의 쉼표 등으로 지정할 수 있다. 그룹들은 지정한 순서대로 처리됩니다. 여러번 호출된 -g 옵션과 콤마로 구분된 목록들은 자유롭게 혼용하여 사용 할 수 있다.
이 옵션은 여러번 지정될 수 있으며, 각 옵션들은 연결될 수 있다. NULL 또는 빈 그룹은 첫번째 쉼표, 맨 뒤의 쉼표, 두개의 쉼표 등으로 지정할 수 있다. 그룹들은 지정한 순서대로 처리된다. 여러번 호출된 -g 옵션과 콤마로 구분된 목록들은 자유롭게 혼용하여 사용 할 수 있다.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
...
@@ -248,7 +248,7 @@ by Sungbae Yoo <sungbae.yoo at samsung.com>
...
@@ -248,7 +248,7 @@ by Sungbae Yoo <sungbae.yoo at samsung.com>
shutdown. It's used to select which containers to start in what order
shutdown. It's used to select which containers to start in what order
and how much to delay between each startup when the host system boots.
and how much to delay between each startup when the host system boots.
-->
-->
부팅과 종료시 호스트의 시스>템에서 실행되도록 활성화 되어있을 때, <command>lxc-autostart</command> 명령어는 LXC 시스템 서비스의 일부로 사용됩니다. 어떤 컨테이너를 어떤 순서로 얼마만큼 시작간격을 두어 시작할지를 선택하는데 사용됩니다.
부팅과 종료시 호스트의 시스>템에서 실행되도록 활성화 되어있을 때, <command>lxc-autostart</command> 명령어는 LXC 시스템 서비스의 일부로 사용된다. 어떤 컨테이너를 어떤 순서로 얼마만큼 간격을 두어 시작할지 선택하는데 사용된다.
상속 받는 파일 디스크립터가 있다면, 전부 닫는다. 만약 이 옵션이 지정되지 않았을 경우 <command>lxc-start</command>는 실패와 함께 종료됩니다. 주의 : <replaceable>--daemon</replaceable>는 <replaceable>--close-all-fds</replaceable>를 포함하고 있다.
상속 받는 파일 디스크립터가 있다면, 전부 닫는다. 만약 이 옵션이 지정되지 않았을 경우 <command>lxc-start</command>는 실패와 함께 종료된다. 주의 : <replaceable>--daemon</replaceable>는 <replaceable>--close-all-fds</replaceable>를 포함하고 있다.