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
a122de39
Unverified
Commit
a122de39
authored
Nov 23, 2017
by
Stéphane Graber
Committed by
GitHub
Nov 23, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1939 from brauner/2017-11-22/more_elaborate_config_update_message
doc: documents lxc.namespace.[namespace identifier] + confile: improve legacy update message
parents
b151c7e5
f3c9f122
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
1 deletion
+63
-1
lxc.container.conf.sgml.in
doc/lxc.container.conf.sgml.in
+59
-0
confile.c
src/lxc/confile.c
+4
-1
No files found.
doc/lxc.container.conf.sgml.in
View file @
a122de39
...
@@ -1278,6 +1278,65 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
...
@@ -1278,6 +1278,65 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
</refsect2>
</refsect2>
<refsect2>
<refsect2>
<title>Namespace Inheritance</title>
<para>
The capabilities can be dropped in the container if this one
is run as root.
</para>
<variablelist>
<varlistentry>
<term>
<option>lxc.namespace.[namespace identifier]</option>
</term>
<listitem>
<para>
Specify a namespace to inherit from another container or process.
The <option>[namespace identifier]</option> suffix needs to be
replaced with one of the namespaces that appear in the
<filename>/proc/PID/ns</filename> directory.
</para>
<para>
To inherit the namespace from another process set the
<option>lxc.namespace.[namespace identifier]</option> to the PID of
the process, e.g. <option>lxc.namespace.net=42</option>.
</para>
<para>
To inherit the namespace from another container set the
<option>lxc.namespace.[namespace identifier]</option> to the name of
the container, e.g. <option>lxc.namespace.pid=c3</option>.
</para>
<para>
To inherit the namespace from another container located in a
different path than the standard liblxc path set the
<option>lxc.namespace.[namespace identifier]</option> to the full
path to the container, e.g.
<option>lxc.namespace.user=/opt/c3</option>.
</para>
<para>
In order to inherit namespaces the caller needs to have sufficient
privilege over the process or container.
</para>
<para>
Note that sharing pid namespaces between system containers will
likely not work with most init systems.
</para>
<para>
Note that if two processes are in different user namespaces and one
process wants to inherit the other's network namespace it usually
needs to inherit the user namespace as well.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect2>
<refsect2>
<title>Resource limits</title>
<title>Resource limits</title>
<para>
<para>
The soft and hard resource limits for the container can be changed.
The soft and hard resource limits for the container can be changed.
...
...
src/lxc/confile.c
View file @
a122de39
...
@@ -2115,7 +2115,10 @@ static int parse_line(char *buffer, void *data)
...
@@ -2115,7 +2115,10 @@ static int parse_line(char *buffer, void *data)
*/
*/
fprintf
(
stderr
,
"The configuration file contains "
fprintf
(
stderr
,
"The configuration file contains "
"legacy configuration keys.
\n
Please "
"legacy configuration keys.
\n
Please "
"update your configuration file!
\n
"
);
"update your configuration file!
\n
The "
"update script lxc-update-config -c "
"<path-to-config> can be used for "
"this.
\n
"
);
}
}
}
}
/* [END]: REMOVE IN LXC 3.0 */
/* [END]: REMOVE IN LXC 3.0 */
...
...
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