diff options
| author | David Thompson <davet@gnu.org> | 2015-06-08 09:04:38 -0400 |
|---|---|---|
| committer | David Thompson <dthompson2@worcester.edu> | 2015-10-30 13:22:59 -0400 |
| commit | 1c8a81b1af81bdb2fd87efb38004900ad5a77d36 (patch) | |
| tree | a0eb77e6687626a247bff906cab867b2bfb886af /doc | |
| parent | 8e5999e0b0a4f3e639663a803eb99486c3d8304a (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.texi | 21 |
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 | ||
| 7268 | Return a script to run the operating system declared in @var{file} | ||
| 7269 | within a container. Containers are a set of lightweight isolation | ||
| 7270 | mechanisms provided by the kernel Linux-libre. Containers are | ||
| 7271 | substantially less resource-demanding than full virtual machines since | ||
| 7272 | the kernel, shared objects, and other resources can be shared with the | ||
| 7273 | host system; this also means they provide thinner isolation. | ||
| 7274 | |||
| 7275 | Currently, the script must be run as root in order to support more than | ||
| 7276 | a single user and group. The container shares its store with the host | ||
| 7277 | system. | ||
| 7278 | |||
| 7279 | As with the @code{vm} action (@pxref{guix system vm}), additional file | ||
| 7280 | systems to be shared between the host and container can be specified | ||
| 7281 | using the @option{--share} and @option{--expose} options: | ||
| 7282 | |||
| 7283 | @example | ||
| 7284 | guix 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 |
