summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDavid Thompson <davet@gnu.org>2015-06-08 09:04:38 -0400
committerDavid Thompson <dthompson2@worcester.edu>2015-10-30 13:22:59 -0400
commit1c8a81b1af81bdb2fd87efb38004900ad5a77d36 (patch)
treea0eb77e6687626a247bff906cab867b2bfb886af /doc
parent8e5999e0b0a4f3e639663a803eb99486c3d8304a (diff)
scripts: system: Add 'container' action.
* guix/scripts/system.scm (show-help): Display 'container' action. (system-derivation-for-action, guix-system): Add 'container' case. (perform-action): Skip GRUB config generation when building a container. * doc/guix.texi (Invoking guix system): Document it.
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi21
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 236c5973cd8..a23d8244ffe 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -7264,6 +7264,27 @@ using the following command:
7264# dd if=$(guix system disk-image my-os.scm) of=/dev/sdc 7264# dd if=$(guix system disk-image my-os.scm) of=/dev/sdc
7265@end example 7265@end example
7266 7266
7267@item container
7268Return a script to run the operating system declared in @var{file}
7269within a container. Containers are a set of lightweight isolation
7270mechanisms provided by the kernel Linux-libre. Containers are
7271substantially less resource-demanding than full virtual machines since
7272the kernel, shared objects, and other resources can be shared with the
7273host system; this also means they provide thinner isolation.
7274
7275Currently, the script must be run as root in order to support more than
7276a single user and group. The container shares its store with the host
7277system.
7278
7279As with the @code{vm} action (@pxref{guix system vm}), additional file
7280systems to be shared between the host and container can be specified
7281using the @option{--share} and @option{--expose} options:
7282
7283@example
7284guix system container my-config.scm \
7285 --expose=$HOME --share=$HOME/tmp=/exchange
7286@end example
7287
7267@end table 7288@end table
7268 7289
7269@var{options} can contain any of the common build options provided by 7290@var{options} can contain any of the common build options provided by