[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help understand some guix concepts

From: Ludovic Courtès
Subject: Re: Help understand some guix concepts
Date: Tue, 09 Jan 2018 13:41:52 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)


Sorry for the late reply.

Amirouche Boubekki <address@hidden> skribis:

> *Q:* Does chroot guix/sd use chroot?

The build daemon, ‘guix-daemon’, uses chroot (among other tools) to
perform isolated builds:

> *Q:* Do guix developers use chroot somehow?


> *Q:* Do guix developers use 'guix system init' in combination with chroot?

They could, but it’s not very useful or convenient.  ‘guix system vm’ or
‘guix system container’ (the latter actually uses chroot(2)) are simpler

> *Q: *Does guix/sd use cgroups <>?

No (not yet).

> *Q: *Does guix/sd containers enforce an image format?


Docker & co. often associate “container” and “image format” because what
they deal with are binary images.

Conversely Guix and GuixSD have a detailed view of package composition,
service composition, etc.  Thus, they can spawn a container that
contains everything you specified (see ‘guix system container’ and ‘guix
environment -C’), and they can also create binary images that contain
everything you want (see ‘guix pack’ and ‘guix system vm-image’).

However, neither Guix nor GuixSD is in the business of running software
from containers in the format defined by Docker & co.

> *Q: *Can guix/sd use images? What are the advantages?
> *Q: *How does networking happens in guix/sd?
> *Q: *Is it possible to bind multiple interfaces via a bridge on the host
> system to the container?

Not easily so.

> *Q: *Is it possible or recommended to run shepherd inside a guix container?

‘guix system container’ runs GuixSD in a container, and GuixSD uses the

> *Q:* isn't AppImage <> a
> "combination" of 'guix pack' and 'guix container'.

AppImage is a *format* for distributing software, as Wikipedia notes.

‘guix pack’ is a tool to create images (“binary images”, “bundles”,
depending on the preferred terminology).  See

> *Q: *Is it possible to have Xorg running inside a container and then use
> ssh -X to access it? Is there a way to avoid the ssh -X?

In theory we should be able to run Xorg in a ‘guix system container’,
but it would have to use a display different from that of the host.
Never tried though.

That said, you don’t need a running X server on the remote host to use
“ssh -X”.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]