From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:54464) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1im3Aq-0001QZ-VZ for guix-patches@gnu.org; Mon, 30 Dec 2019 17:06:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1im3Ao-0004kx-Vu for guix-patches@gnu.org; Mon, 30 Dec 2019 17:06:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55834) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1im3Ao-0004jP-Hl for guix-patches@gnu.org; Mon, 30 Dec 2019 17:06:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1im3Ao-0003w4-B1 for guix-patches@gnu.org; Mon, 30 Dec 2019 17:06:02 -0500 Subject: [bug#38720] [PATCH] system: linux-container: Recommend guix container Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20191223140758.GS1115@E5400> Date: Mon, 30 Dec 2019 23:05:02 +0100 In-Reply-To: <20191223140758.GS1115@E5400> (Efraim Flashner's message of "Mon, 23 Dec 2019 16:07:58 +0200") Message-ID: <87v9pxzcz5.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Efraim Flashner Cc: 38720@debbugs.gnu.org Hi! Efraim Flashner skribis: > I've been using guix containers on foreign systems to bring some Guixy > goodness to the unwashed sysadmins out there. When the container starts > up it displays a message like "Run 'sudo nsenter -a -t 65698' to get a > shell into it." Sometimes when I try to do that I'll get an error > message back about the system's nsenter not knowing about the '-a' flag. > I have found that using a 'guix container' command works well for me. Oh. I was conservative and thought that people would rather use =E2=80=9Cstandard=E2=80=9D tools. > From f2cd59c9eb756e243a5a01e6cd3a6a6e58a02be6 Mon Sep 17 00:00:00 2001 > From: Efraim Flashner > Date: Mon, 23 Dec 2019 16:05:04 +0200 > Subject: [PATCH] system: linux-container: Recommend guix container. > > * gnu/system/linux-container.scm (container-script)[script]: Recommend > using 'guix container' to get a shell inside the running container. [...] > - ;; XXX: Should we recommend 'guix container exec'? It's m= ore > - ;; verbose and doesn't bring much. > - (info (G_ "Run 'sudo nsenter -a -t ~a' to get a shell into= it.~%") > + (info (G_ "Run 'sudo guix container exec ~a /run/current-s= ystem/profile/bin/bash --login' to get a shell into it.~%") > pid) The comment is still correct: =E2=80=9Cguix container exec=E2=80=9D is more= verbose. :-) Should we change it so that =E2=80=9Cguix container exec PID=E2=80=9D witho= ut additional arguments runs /bin/sh by default, or something like that? Thanks, Ludo=E2=80=99.