From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aLK8I+j30167TwAA0tVLHw (envelope-from ) for ; Sun, 31 May 2020 18:31:04 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id ONm6H+j3016bOgAAB5/wlQ (envelope-from ) for ; Sun, 31 May 2020 18:31:04 +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 D2E58940058 for ; Sun, 31 May 2020 18:31:03 +0000 (UTC) Received: from localhost ([::1]:47412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfSje-00045b-22 for larch@yhetil.org; Sun, 31 May 2020 14:31:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40872) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfSj8-00045T-Rf for help-guix@gnu.org; Sun, 31 May 2020 14:30:30 -0400 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]:40505) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jfSj7-0007RY-Rz for help-guix@gnu.org; Sun, 31 May 2020 14:30:30 -0400 Received: by mail-lj1-x232.google.com with SMTP id z13so5381336ljn.7 for ; Sun, 31 May 2020 11:30:29 -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=BlOqNSLAbfJY9uVkQRf4+QYE0ROUL/M165gmPmGvpfg=; b=Yag+gzzz/fDw4DPQMel7fBAfDZGLKnIq5drGGrdCAxIsHr6tO6wxQ11BmoaZbaDxug OKdXb/0w/92Xul7NJsCIYu/qGM1iezG/2mFkZPa0OtTJdfKDyX1GU/PSG9tZWOD1jp8B pQJgcsJxCP0jsA3D4CSN6CvHdUpM/U2o6Oj/P9TH0RWNZXoDkAf8x1W2pxXGoj/WRU6K 5MEVqh07mgu2nyRmnC42/dtlAM1gr/IDSDFjDaha8uZ5o5LDE/HFLfzHa64GG+G12Fdw rxoWmACtvoldn68p6EfjH0deQXCJnsgjQB9RI6Ih9pCkWWBP4h0KQVqMIRLtQ6A0qLjW ls0A== 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=BlOqNSLAbfJY9uVkQRf4+QYE0ROUL/M165gmPmGvpfg=; b=Uf+BQcg4hYFSuVtJGhrfDCPP4c0dUmHGXIOZ4Q0HHbMlwxKaqQREx8sysozqHo3oGM N0RbQjTgh3pJlr7f1UsBN6XdLC3VrLkzRKJ2FqdSTEMLfonsEK14qhpApof6t/bS4MBQ a8PABqvijbSFl3sqoKumVSleivhbubgxI4QswitqJfnfSAGXQdAvabAXw5XMJkNeoOdS m/MeFlYhNXqAkG5JuYpEIE2FHMQBPhPBQKLymr51gZ+tXqQpvdt5qkJ7a8hFDiwoiu3b aphc+zGfXh+yhXJV9K9OHYWsp6pMpId80GGOlpIy7kTswJnwSERkv5itZ9HyS87kf0db vHzg== X-Gm-Message-State: AOAM532DtBN8OFOh1OKSvY8JjMumiszbvaIkn1GU8PRmidqZDOkRkBAm a4ITxDBiUhWE3cUF78zS2uDI+jDjrtwDVbJ4pCg= X-Google-Smtp-Source: ABdhPJwThgyOQY1+Z2OtmQ9VNs4TZgPcEePHzRiPEPOWpVKB+TqThCEQyyXL6eMAz3kCdVcFBRcnrIs37dRNxkNIrnY= X-Received: by 2002:a2e:8ec9:: with SMTP id e9mr4992343ljl.152.1590949827812; Sun, 31 May 2020 11:30:27 -0700 (PDT) MIME-Version: 1.0 References: <87h7vyxqrz.fsf@gmail.com> In-Reply-To: From: Stephen Scheck Date: Sun, 31 May 2020 14:30:16 -0400 Message-ID: Subject: Re: Guix Docker image inflation To: zimoun Received-SPF: pass client-ip=2a00:1450:4864:20::232; envelope-from=singularsyntax@gmail.com; helo=mail-lj1-x232.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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 Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=gmail.com header.s=20161025 header.b=Yag+gzzz; 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: 1.59 X-TUID: pvCrd4wZr7UX On Sun, May 31, 2020 at 5:37 AM zimoun wrote: > No, it is how Docker is designed. Maybe the terminology "layer" is > not the Docker one but when the images are chained, one cannot remove > the data of the previous layer of the total image. > I'm not disagreeing with that, but IF any of the store files resulting from `guix pull` are ephemeral (i.e. intermediate build results not anchored to a profile) AND guix GC worked inside the container, my approach might still work - yes there would be image and layers growth but it might be small enough not to care between periodic image rebases. But I'm starting to doubt that, or at least it is difficult to quantify with the GC issues. > Because if you run Guix outside an Docker container, you will not have > the issue. The main issue is how the Docker "filesystem" is designed. > Actually, there might be another way around this, still avoiding the need for a custom Runner, for example mounting /var/guix and /gnu/store into the container instead of belonging to it. If done that way, layer accumulation wouldn't be an issue, and maybe GC between layers neither.