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
b6d441f2
Commit
b6d441f2
authored
Dec 01, 2008
by
dlezcano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some typos
From: Daniel Lezcano <dlezcano@fr.ibm.com> Fix some typos. Signed-off-by:
Daniel Lezcano
<
dlezcano@fr.ibm.com
>
parent
bad69158
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
30 deletions
+24
-30
lxc.sgml.in
doc/lxc.sgml.in
+24
-30
No files found.
doc/lxc.sgml.in
View file @
b6d441f2
...
@@ -56,7 +56,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
...
@@ -56,7 +56,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
a container with a predefined configuration template, it may
a container with a predefined configuration template, it may
work.
work.
<command>
<command>
lxc-execute -n foo -f /etc
/lxc/lxc-macvlan.conf /bin/bash
@BINDIR@/lxc-execute -n foo -f @SYSCONFDIR@
/lxc/lxc-macvlan.conf /bin/bash
</command>
</command>
</para>
</para>
</refsect1>
</refsect1>
...
@@ -72,7 +72,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
...
@@ -72,7 +72,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
<para>
<para>
The linux containers, <command>lxc</command>, aims to use these
The linux containers, <command>lxc</command>, aims to use these
new function
n
alities to provide an userspace container object
new functionalities to provide an userspace container object
which provides full resource isolation and resource control for
which provides full resource isolation and resource control for
an applications or a system.
an applications or a system.
</para>
</para>
...
@@ -90,10 +90,10 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
...
@@ -90,10 +90,10 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
<refsect1>
<refsect1>
<title>Requirements</title>
<title>Requirements</title>
<para>
<para>
The <command>lxc</command> relies on a set of function
n
alies
The <command>lxc</command> relies on a set of functionalies
provided by the kernel which needs to be active. Depending of
provided by the kernel which needs to be active. Depending of
the missing function
n
alities the <command>lxc</command> will
the missing functionalities the <command>lxc</command> will
work with a restricted number of function
n
alities or will simply
work with a restricted number of functionalities or will simply
fails.
fails.
</para>
</para>
...
@@ -131,10 +131,10 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
...
@@ -131,10 +131,10 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
But the kernel version >= 2.6.27 shipped with the distros, may
But the kernel version >= 2.6.27 shipped with the distros, may
work with <command>lxc</command>, this one will have less
work with <command>lxc</command>, this one will have less
function
n
alities but enough to be interesting.
functionalities but enough to be interesting.
The planned kernel version which <command>lxc</command> should
The planned kernel version which <command>lxc</command> should
be fully function
n
aly is 2.6.29.
be fully functionaly is 2.6.29.
</para>
</para>
<para>
<para>
...
@@ -158,15 +158,15 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
...
@@ -158,15 +158,15 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
<para>How to run an application in a container ?</para>
<para>How to run an application in a container ?</para>
<para>
<para>
Before running an application, you should know what are the
Before running an application, you should know what are the
resource
you want to isolate. The default configuration is
resource
s you want to isolate. The default configuration is to
isolat
ion of the pids, the sysv ipc and the mount points. If
isolat
e the pids, the sysv ipc and the mount points. If you want
you want to run a simple shell inside a container, a basic
to run a simple shell inside a container, a basic configuration
configuration is needed, especially if you want to share the
is needed, especially if you want to share the rootfs. If you
rootfs. If you want to run an application
want to run an application like <command>sshd</command>, you
like <command>sshd</command>, you should provide a new network
should provide a new network stack and a new hostname. If you
stack and a new hostname. If you want to avoid conflicts with
want to avoid conflicts with some files
some files eg. <filename>/var/run/httpd.pid</filename>, you
eg. <filename>/var/run/httpd.pid</filename>, you should
should
remount <filename>/var/run</filename> with an empty
remount <filename>/var/run</filename> with an empty
directory. If you want to avoid the conflicts in all the cases,
directory. If you want to avoid the conflicts in all the cases,
you can specify a rootfs for the container. The rootfs can be a
you can specify a rootfs for the container. The rootfs can be a
directory tree, previously bind mounted with the initial rootfs,
directory tree, previously bind mounted with the initial rootfs,
...
@@ -233,21 +233,15 @@ rootfs
...
@@ -233,21 +233,15 @@ rootfs
/dev/pts /home/root/debian/rootfs/dev/pts none bind 0 0
/dev/pts /home/root/debian/rootfs/dev/pts none bind 0 0
</programlisting>
</programlisting>
A good idea to have the console is to mount bind this one to our
More information can be added to the container to facilitate the
tty, so we see the output of the system container booting and
configuration. For example, make accessible from the container
we can log to i
t.
the resolv.conf file belonging to the hos
t.
<programlisting>
<programlisting>
$(tty) /home/root/debian/rootfs/dev/console
none bind 0 0
/etc/resolv.conf /home/root/debian/rootfs/etc/resolv.conf
none bind 0 0
</programlisting>
</programlisting>
</para>
</para>
<para>These examples are avaible in the contrib package located at:
<systemitem>
https://sourceforge.net/projects/lxc/
</systemitem>
</para>
<refsect2>
<refsect2>
<title>Container life cycle</title>
<title>Container life cycle</title>
<para>
<para>
...
@@ -363,8 +357,8 @@ rootfs
...
@@ -363,8 +357,8 @@ rootfs
</para>
</para>
<para>
<para>
If the application is no longer responding, inaccessible
and
If the application is no longer responding, inaccessible
or is
is
not able to finish by itself, a
not able to finish by itself, a
wild <command>lxc-stop</command> command will kill all the
wild <command>lxc-stop</command> command will kill all the
processes in the container without pity.
processes in the container without pity.
<programlisting>
<programlisting>
...
@@ -382,7 +376,7 @@ rootfs
...
@@ -382,7 +376,7 @@ rootfs
lxc-freeze -n foo
lxc-freeze -n foo
</programlisting>
</programlisting>
will put all the processes in an
i
ninteruptible state and
will put all the processes in an
u
ninteruptible state and
<programlisting>
<programlisting>
lxc-unfreeze -n foo
lxc-unfreeze -n foo
...
@@ -438,7 +432,7 @@ rootfs
...
@@ -438,7 +432,7 @@ rootfs
<para>
<para>
<command>lxc-info</command> gives informations for a specific
<command>lxc-info</command> gives informations for a specific
container, at present only the state of the container is
container, at present
time,
only the state of the container is
displayed.
displayed.
</para>
</para>
...
...
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