X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=man%2Fsystemd-nspawn.xml;h=08b0457d16298d3395894391de82e60085e0b135;hb=a8828ed93878b4b4866d40ebfb660e54995ff72e;hp=c2be6d5446babde16ca2ddb4dbc169d65cd5ff2e;hpb=04d39279245834494baccfdb9349db8bf80abd13;p=elogind.git diff --git a/man/systemd-nspawn.xml b/man/systemd-nspawn.xml index c2be6d544..08b0457d1 100644 --- a/man/systemd-nspawn.xml +++ b/man/systemd-nspawn.xml @@ -248,6 +248,27 @@ + + + + + Sets the mandatory + access control (MAC) file label to be + used by tmpfs file systems in the + container. + + + + + + + + Sets the mandatory + access control (MAC) label to be used by + processes in the container. + + + @@ -303,6 +324,16 @@ CAP_AUDIT_CONTROL. + + + + Specify one or more + additional capabilities to drop for + the container. This allows running the + container with fewer capabilities than + the default (see above). + + @@ -370,6 +401,21 @@ creates read-only bind mount. + + + + + Specifies an + environment variable assignment to + pass to the init process in the + container, in the format + NAME=VALUE. This + may be used to override the default + variables or to set additional + variables. This parameter may be used + more than once. + + @@ -409,6 +455,37 @@ boots an OS in a namespace container in it. + + Example 4 + + # mv ~/arch-tree /var/lib/container/arch +# systemctl enable systemd-nspawn@arch.service +# systemctl start systemd-nspawn@arch.service + + This makes the Arch Linux container part of the + multi-user.target on the host. + + + + + Example 5 + + # btrfs subvolume snapshot / /.tmp +# systemd-nspawn --private-network -D /.tmp -b + + This runs a copy of the host system in a + btrfs snapshot. + + + + Example 6 + + # chcon system_u:object_r:svirt_sandbox_file_t:s0:c0,c1 -R /srv/container +# systemd-nspawn -L system_u:object_r:svirt_sandbox_file_t:s0:c0,c1 -Z system_u:system_r:svirt_lxc_net_t:s0:c0,c1 -D /srv/container /bin/sh + + This runs a container with SELinux sandbox labels. + + Exit status