From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id WKicK/mg0V6FYwAA0tVLHw (envelope-from ) for ; Fri, 29 May 2020 23:55:37 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id SFtnJ/mg0V4cLQAA1q6Kng (envelope-from ) for ; Fri, 29 May 2020 23:55:37 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1F2EF9402D6 for ; Fri, 29 May 2020 23:55:36 +0000 (UTC) Received: from localhost ([::1]:38862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeoqc-00024P-Qk for larch@yhetil.org; Fri, 29 May 2020 19:55:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeoqT-00023y-GL for help-guix@gnu.org; Fri, 29 May 2020 19:55:25 -0400 Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]:38403) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jeoqS-0001Ak-HK for help-guix@gnu.org; Fri, 29 May 2020 19:55:25 -0400 Received: by mail-qk1-x731.google.com with SMTP id w1so3917541qkw.5 for ; Fri, 29 May 2020 16:55:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PExkCIKwB2Gb8vnTJnzUK9kBo3sVvaFpj3bBr5IoqXk=; b=Vez45d8szofKpyiUa+2on7BP7yAtwUN/itfibOM38WG/RfCKb8UR3nFwoXO6Cg+bOK /fWny9Z1O0fzUIfE+go0HoAMh40VGqy1joBxuimy9NmG57cr+pKuPzJoVtm+AgcrbM5h vfrhXkyaWU0D5LGYaP4hfA2m+ccG/YGpgvNZhjKeZbphPyMpy8yCYNeKWDGiPEfn8IlS ANh66P/DI8MkTrm4G5AAPfrxXfQiu5bEm/Lb491BfWckAJ4IxmwzdmiF0vdlh5cpkwjm HF/81sFB82MuVEKkc/sRRKdLvsWUmBsgTUASkzO4M11dJmOl3SCxyjJ4cRDQKM0Cp6Q5 wYcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PExkCIKwB2Gb8vnTJnzUK9kBo3sVvaFpj3bBr5IoqXk=; b=EtnnLYYB3/j66o31xBQE2+XHgF4mv7/w2h1XGZJE5i9PRRa+zaTjknCUxxhnH/P8kU CFHdk/df9PDBbOJZ3Hs2++Sr1gMwWIDx6w+3GIaoxHCIMzIVGglomxN37w0qHByX/BFy 8lQMBMrL4whv6Tw3eo+ZsxcgtLhgHmdDz0A6KFCI7c1sXBnV4PU1doD4zetF135Bpznn 86kYRgW/GOqQalszh5G2Zj+FvJl9RDAUSphHEErz51Q/Ar5vxKHNnQisHEAK9YkemvJr WZj31Tc4Km82bS5d5mMeZ83H0Yhg2DDqv6+oXLQEe9Zn9LSMgs9W9FgARS0snFr4BVQM NqLQ== X-Gm-Message-State: AOAM531hBo9KE3lV7kGNb8yJsxRPrR0Mnv7xbvzplRExEmuJhRo4i2cL +Qd7Z2XpjeAtNIVY+Hi/lZ8IGoUBKXp1Wx5Fi8U= X-Google-Smtp-Source: ABdhPJwlUXFJceBWIKRBy6CmWekTVomFj+3xuoJopJsmUcRDzOAqDAeSzR8EXmE5Az/tz1RN6BTH06beyJrYhgEVuBg= X-Received: by 2002:a37:4b88:: with SMTP id y130mr10188005qka.80.1590796523410; Fri, 29 May 2020 16:55:23 -0700 (PDT) MIME-Version: 1.0 References: <87h7vyxqrz.fsf@gmail.com> In-Reply-To: <87h7vyxqrz.fsf@gmail.com> From: zimoun Date: Sat, 30 May 2020 01:55:12 +0200 Message-ID: Subject: Re: Guix Docker image inflation To: Chris Marusich Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::731; envelope-from=zimon.toutoune@gmail.com; helo=mail-qk1-x731.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix , Stephen Scheck Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=Vez45d8s; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: 3ZGnWA8nkfeU Hi Chris, On Sat, 30 May 2020 at 01:31, Chris Marusich wrote: > Could it be that you are accumulating layers without bound? > > https://developers.redhat.com/blog/2016/03/09/more-about-docker-images-size/ > > 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. :-) [1] http://issues.guix.gnu.org/41607#1 > 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. :-) Cheers, simon