[Top][All Lists]

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

Is anyone using `guix system container` in production?

From: conjaroy
Subject: Is anyone using `guix system container` in production?
Date: Wed, 29 Jul 2020 18:17:44 -0400

I'm interested in deploying several system containers to a single cloud
VPS, and I had originally planned to build those via `guix system
docker-image`. Although Docker has some nice CLI tools for
starting/stopping/listing active containers, it occurs to me that an
alternative (`guix system container`) has at least one significant
advantage: containers come online in seconds, as opposed to the minutes it
takes to build and import a Docker image (or tens of minutes, if the build
host is a VM without /dev/kvm.) It might also be the case that using
/gnu/store for all containers is more disk-space-efficient than creating
self-contained Docker images for each one.

So I was wondering if anyone has experience running long-lived containers
built via `guix system container` in a production setting. Since I'm
running Guix on a foreign distro (Debian 10), it seems reasonable to build
a systemd service around the container script, but there may be pitfalls I
haven't considered:

# build container script and register it as a gc root with a well-known
guix build --root=/home/guix/my-awesome-container $(guix system container
-d my-awesome-container.scm)

cat << EOF > /etc/systemd/system/my-awesome-container.service
Description=My Awesome Container



reply via email to

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