On Tue, 11 Mar 2025 13:52:52 +0100 Stéfane Fermigier <s...@fermigier.com> wrote:
> Hi, Hi, > I'm totally new to Guix. > > 1) Is there a recommended container image to get started? There is no official Guix (OCI) container image but you might be able to make your own with 'guix system image -t docker [...]', however I've no idea if it's trivial or if it requires significant work as docker/OCI containers are a bit special (even more so if they don't run as root). > Since Systemd isn't supposed to be started in a container, is there a > workaround (like the single-user mode for Nix) ? The manual has a section on "2.3 Invoking guix-daemon"[1], however I fear that this only works if the rest of the setup is done by the system. For instance if you install Guix from guix-install.sh or a distribution, this takes care of mounts and other things as well, which enables to start the daemon easily. I had a similar issue as I also need to run the guix-daemon inside a (Trisquel) chroot, so I wrote a (fragile) script for that[2]. Though I've no idea if this can work in a container that is not root on the host so you'll have to try. References: ----------- [1]https://guix.gnu.org/manual/devel/en/html_node/Invoking-guix_002ddaemon.html [2]https://git.savannah.gnu.org/cgit/gnuboot.git/plain/contrib/start-guix-daemon.py Denis.
pgpQ1CvqdS6rc.pgp
Description: OpenPGP digital signature