Changes

Jump to: navigation, search

Man/vzctl.8

1,075 bytes added, 05:43, 2 June 2013
Automated import of articles *** existing text overwritten ***
[<b>--ipadd&nbsp;</b><i>addr</i>]
[<b>--hostname&nbsp;</b><i>name</i>]
[<b>--name&nbsp;</b><i>name</i>][<b>--local_uid&nbsp;</b><i>uid</i>][<b>--local_gid&nbsp;</b><i>gid</i>]</p> </td></tr>
</table>
<b>--hostname</b> <i>name</i> option to set a host name for
a container.</p>
 
<p style="margin-left:17%; margin-top: 1em">When running
with an upstream Linux Kernel that supports user namespaces
(&gt;= 3.8), the parameters <b>--local_uid</b> and
<b>--local_gid</b> can be used to select which <i>uid</i>
and <i>gid</i> respectively will be used as a base user in
the host system. Note that user namespaces provide a 1:1
mapping between container users and host users. If these
options are not specified, the values <b>LOCAL_UID</b> and
<b>LOCAL_GID</b> from global configuration file
[[Man/vz.conf.5|<b>vz.conf</b>(5)]] are used. An explicit <b>--local_uid</b>
value of 0 will disable user namespace support, and run the
container as a privileged user. In this case,
<b>--local_gid</b> is ignored.</p>
 
<p style="margin-left:17%; margin-top: 1em"><b>Warning:</b>
use <b>--local_uid</b> and <b>--local_gid</b> with care,
specially when migrating containers. In all situations, the
container&rsquo;s files in the filesystem needs to be
correctly owned by the host-side users.</p>
<p style="margin-left:11%;"><b>destroy</b> | <b>delete</b>
2,253
edits

Navigation menu