[Top][All Lists]

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

Re: Guix Docker image inflation

From: zimoun
Subject: Re: Guix Docker image inflation
Date: Sat, 30 May 2020 01:55:12 +0200

Hi Chris,

On Sat, 30 May 2020 at 01:31, Chris Marusich <> wrote:

> Could it be that you are accumulating layers without bound?
> Since Docker images are built up of immutable layers, if you build your
> image from an existing base image, I'm not sure that it's possible to
> produce a new image that is smaller than the base image.  Basically,
> even if you run "guix gc" to remove dead store items, they will still
> exist on a prior layer, so the size of the new image won't decrease.
> And since you're installing new things, the size will actually increase.
> If you repeat this process by using the new image as an input for yet
> another build, I think you will accumulate layers and storage space
> without bound.

Thank you for the explanation.  The issue is these layers.  When I
wrote [1], it was not clear for me because I am not enough familiar
with Docker, but with your explanations, it is clear now. :-)


> FYI, Guix itself can build Docker images from scratch - no base image
> required!  It can even build a Docker image of a full-blown Guix System
> from scratch.  Sorry if you already knew that - I just wanted to point
> it out in case you didn't!

I think the idea is to use GitlabCI to build the Docker images
containing Guix materials.  And AFAIK, GitlabCI does not provide Guix
related tools, isn't it?  I mean there is no gitlab-runner able to run
guix-daemon.  If I remember well, we discussed about this topic at
FOSDEM, it should be awesome. :-)


reply via email to

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