X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=man%2Fsystemd-nspawn.xml;h=bec233c1ca9eb9c056df7dc72a385483b3de8a16;hp=c2be6d5446babde16ca2ddb4dbc169d65cd5ff2e;hb=f4889f656b477887b02caa5e9d27387309c75a87;hpb=04d39279245834494baccfdb9349db8bf80abd13 diff --git a/man/systemd-nspawn.xml b/man/systemd-nspawn.xml index c2be6d544..bec233c1c 100644 --- a/man/systemd-nspawn.xml +++ b/man/systemd-nspawn.xml @@ -303,6 +303,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 +380,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 +434,29 @@ 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. + + + Exit status