From unknown Fri Jun 13 10:38:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47617: Docker containers retain references to the runc used Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 06 Apr 2021 14:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47617 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 47617@debbugs.gnu.org X-Debbugs-Original-To: bug-guix Received: via spool by submit@debbugs.gnu.org id=B.16177201615098 (code B ref -1); Tue, 06 Apr 2021 14:43:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Apr 2021 14:42:41 +0000 Received: from localhost ([127.0.0.1]:41406 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTmuf-0001KA-50 for submit@debbugs.gnu.org; Tue, 06 Apr 2021 10:42:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:56446) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTmub-0001Jz-QG for submit@debbugs.gnu.org; Tue, 06 Apr 2021 10:42:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTmub-0001vK-F6 for bug-guix@gnu.org; Tue, 06 Apr 2021 10:42:37 -0400 Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]:40602) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTmuY-0002VF-QJ for bug-guix@gnu.org; Tue, 06 Apr 2021 10:42:36 -0400 Received: by mail-qk1-x731.google.com with SMTP id 7so15133505qka.7 for ; Tue, 06 Apr 2021 07:42:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=DvG4nSLvz2rgbRK0pz7rremJaQBt4uXTmeLlt5r+vdo=; b=rQxscaOQuQ08zy856WEcrFbNZzW7l6tZnhAukg/pzaREj1zYElqscdxrW715eUxsi1 KrGB3g7u3j7bod0K8RWXqvcMZpOokf3nKEa/4jyzxJ9lu3rTIdJEX6/EMWc0NLCj6vdl KNjvmnDWSjGy+N2Zj/IZjlC8hOPoU/gmDxXkl+pUOANGvfB8QHGA/VFcB3g7jBB3buyz NYZz+nS43h2A3hLkIcRGSby6w93HikXClEG5vS6zHp+d1Vv8w+rnrLUWlhCUue23bOTz jGshDJpxQ+NZ2Vln1uGJQ6njpDge5amMb9RfERrzzfBfVKFCXALs7Y8bg5aKnXhSEVR0 lxjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=DvG4nSLvz2rgbRK0pz7rremJaQBt4uXTmeLlt5r+vdo=; b=fREbrT+gGaWCT+YVJkaFyfghFbyb28ws6+hM+DfEpJ2A+4pIodtDOQJV+S+cSmHZd8 exgjiMboFp1K31z1HeuQM+27Vt6RwePNQehdyC/ukqlBwVucSdzp56s4Pa7nBB6HSnjS BSj2PIJP8EZBFIiKkJr85zYJkLDXeo9oNIKlvwNpR2hWjhUUAmxVw5jMXSX/IYS1Dsl7 UoJfkstKta4rIUs4l+tf4NFVu0IdWlMLlkOUeKPsjs3laFvhSQ8ay4LJuvGP2wlxUTzN qpGisi6dpHANzjIAiBVWGKO+kl+ww73vrOuRd+LPBw/IkdZix8SSUnTu+3fT8lvpFyRn nwvA== X-Gm-Message-State: AOAM530AdCQhPYhOcLy8zS65pvY0LUFnIO+rbo7L+IbUOkm7zC+BzFeJ 2QPAAg6uu2Ul84iXTwrvU3GvnDLz3mA= X-Google-Smtp-Source: ABdhPJw0oHaecXDTnwdbV8vC/YTB9Rs7JeNDMfb6v5g7oDMVmHFS3JP8mH96/U6NJKsNn5iIf4OiIQ== X-Received: by 2002:a05:620a:c8a:: with SMTP id q10mr29348883qki.216.1617720152942; Tue, 06 Apr 2021 07:42:32 -0700 (PDT) Received: from hurd (dsl-149-132.b2b2c.ca. [66.158.149.132]) by smtp.gmail.com with ESMTPSA id h5sm14776344qtq.1.2021.04.06.07.42.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 07:42:32 -0700 (PDT) From: Maxim Cournoyer Date: Tue, 06 Apr 2021 10:42:31 -0400 Message-ID: <878s5vpj8o.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::731; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x731.google.com 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_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hello Guix! I had this surprise today, after reconfiguring my Guix System with an upgraded docker: Upon attempting to run an existing container created with the previous Docker version, I got: --8<---------------cut here---------------start------------->8--- ERROR: for moodle-docker_db_1 Cannot start service db: Unknown runtime specified /gnu/store/jx64b4nnh6yvsbp117bfjc5spqz0jfq5-runc-1.0.0-rc6/sbin/runc --8<---------------cut here---------------end--------------->8--- It seems the containers retain the exact references to the runc used, and it somehow cause the execution to fail when it doesn't match with the runc that the current Docker program is using. The workaround is to destroy the containers and recreate them from scratch on this upgraded Docker instance. Thanks, Maxim From unknown Fri Jun 13 10:38:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47617: My $0.02 References: <878s5vpj8o.fsf@gmail.com> In-Reply-To: <878s5vpj8o.fsf@gmail.com> Resent-From: Christopher Rodriguez Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 20 Mar 2022 19:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47617 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 47617@debbugs.gnu.org Received: via spool by 47617-submit@debbugs.gnu.org id=B47617.164780537511768 (code B ref 47617); Sun, 20 Mar 2022 19:43:02 +0000 Received: (at 47617) by debbugs.gnu.org; 20 Mar 2022 19:42:55 +0000 Received: from localhost ([127.0.0.1]:35151 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nW1S3-00033j-AN for submit@debbugs.gnu.org; Sun, 20 Mar 2022 15:42:55 -0400 Received: from mail-ed1-f52.google.com ([209.85.208.52]:35431) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nW1S2-00033V-Ds for 47617@debbugs.gnu.org; Sun, 20 Mar 2022 15:42:54 -0400 Received: by mail-ed1-f52.google.com with SMTP id k10so2004255edj.2 for <47617@debbugs.gnu.org>; Sun, 20 Mar 2022 12:42:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=q1eKa1XTdBhDE2SpYeWvSBxPXGM7VbbDzUhWlmnKwBs=; b=Zb3koP2c5dMgw6BCmnLIwWBZs8hEHViwYD/eKvrmsBgpRMDFeN38d3M3uYimxeu2B4 +le2BnbffZbMFN2rLcailpXg5qod4cCSQKhTgev9KAdrhIpA4WybdP2zn+XSBs75HvcO J0lFbDF4x65L+ZHg1WgWlxlkRzD9N5Xmpg72CZXgPBOe+YrJIlnSHZVhgHl0NHJnh7GB 1/ZRZmonlra4YssRlf9P5mne0UPEAMffSJphkACHgsbdiZeUWrrWJU8gKB3+M4CHbSl2 nJX1Y3yE2dumGjzLoS1QvDBzrQNNJ10oXlVEcZzwHhtZkLZRkXZWZcATUnJOFjMnTWDt bqFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=q1eKa1XTdBhDE2SpYeWvSBxPXGM7VbbDzUhWlmnKwBs=; b=0FzUKrwUs4vX9Cauoga9Mmicw3si0W7PrrLZ9bgLrf80fNjLzXSI4w8tjMHfpMJ7B6 +tjW9TL9yXLpxI1UqZTRPM/qegTLzEgeTc2+4W+bkiDTv00uFZrnd/SCo1/Z40ZcfrC5 mIQunDdhmilqahrDnFsFogEIpMtxQWzYzZ44Yp/2+dxSTHNQfG2BJetre3Z8yMczf+KY AgRXmsYe49zenhrKtA9Myx+V4ROgGpxSvrloA2aXL2gRlsynjGrmSteZblCDUWAdT0nT VhcSYDuOi1Hja4ySvTImcK74jAHIGpOAbHrWPIipXdJKtRe2XuYBinopvq3sZKUzhzbK dmdQ== X-Gm-Message-State: AOAM530eNGP/bPKhutQD95X6uYwxqHusE0RHEJlnBc9o7yphUOwovqhJ SgKWNLs9kfGl12+RI9bxXpo1uO+hpCrIV4ZP8cxkaxPT X-Google-Smtp-Source: ABdhPJzGZsdLwrL0vvB2kWhG1/8sGZ1qRcer3JcdQYWhBfUgXat1o3TSJQ/eIr7aeF9LYO729ARJRx3skWLXK+aLFVg= X-Received: by 2002:aa7:cf0d:0:b0:419:362:7ebf with SMTP id a13-20020aa7cf0d000000b0041903627ebfmr15435064edy.225.1647805368062; Sun, 20 Mar 2022 12:42:48 -0700 (PDT) MIME-Version: 1.0 From: Christopher Rodriguez Date: Sun, 20 Mar 2022 15:42:37 -0400 Message-ID: Content-Type: multipart/alternative; boundary="0000000000009f54b805daab9595" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --0000000000009f54b805daab9595 Content-Type: text/plain; charset="UTF-8" Hey, Just ran into this issue myself. Was able to work around it by editing the file: `/var/run/docker/containers//hostconfig.json` to point to the same `runc` executable that is listed by `guix package -I runc`. After editing, simply run `sudo herd restart dockerd` and the edited container will work as it used to. Dunno how we might implement this kind of edit into the procedure that updates `runc` in the first place, but it seems like that could be a solution. Ideally, it would just use `runc` in the `$PATH`, but then `runc` becomes a propagated input. Hope this helps. -- Christopher Rodriguez --0000000000009f54b805daab9595 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hey,

Just ran into this issu= e myself. Was able to work around it by editing the file:

`/var/run/docker/containers/<container-hash-goes-here>/hostco= nfig.json` to point to the same `runc` executable that is listed by `guix p= ackage -I runc`. After editing, simply run `sudo herd restart dockerd` and = the edited container will work as it used to.

Dunn= o how we might implement this kind of edit into the procedure that updates = `runc` in the first place, but it seems like that could be a solution. Idea= lly, it would just use `runc` in the `$PATH`, but then `runc` becomes a pro= pagated input.

Hope this helps.

--

Christopher Rodriguez
--0000000000009f54b805daab9595--