From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id FHJFNpDIVWHkZQAAgWs5BA (envelope-from ) for ; Thu, 30 Sep 2021 16:24:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id gC0/MZDIVWE0VgAAbx9fmQ (envelope-from ) for ; Thu, 30 Sep 2021 14:24:16 +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 19740BD22 for ; Thu, 30 Sep 2021 16:24:15 +0200 (CEST) Received: from localhost ([::1]:58098 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVwys-0004BZ-8G for larch@yhetil.org; Thu, 30 Sep 2021 10:24:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49272) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVwyh-00047g-0A for bug-guix@gnu.org; Thu, 30 Sep 2021 10:24:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42055) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVwyg-0006CV-Bb for bug-guix@gnu.org; Thu, 30 Sep 2021 10:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mVwyf-0001QU-W8 for bug-guix@gnu.org; Thu, 30 Sep 2021 10:24:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#50916: Experimental `guix container PID program args` not working as expected Resent-From: Bonface Munyoki K. Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 30 Sep 2021 14:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50916 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 50916@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16330118325461 (code B ref -1); Thu, 30 Sep 2021 14:24:01 +0000 Received: (at submit) by debbugs.gnu.org; 30 Sep 2021 14:23:52 +0000 Received: from localhost ([127.0.0.1]:53601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVwyW-0001Q1-ED for submit@debbugs.gnu.org; Thu, 30 Sep 2021 10:23:52 -0400 Received: from lists.gnu.org ([209.51.188.17]:33056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVwyU-0001Pq-Ei for submit@debbugs.gnu.org; Thu, 30 Sep 2021 10:23:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49184) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVwyU-0003zL-8T for bug-guix@gnu.org; Thu, 30 Sep 2021 10:23:50 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:38983) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVwyR-0005w9-JY for bug-guix@gnu.org; Thu, 30 Sep 2021 10:23:49 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 0F56D320188B; Thu, 30 Sep 2021 10:23:43 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 30 Sep 2021 10:23:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= bonfacemunyoki.com; h=from:to:subject:date:message-id :mime-version:content-type; s=fm3; bh=zR9iZjkbUtu0k3V/DAnfWVLRUB 9xNBhJhSfiuXVIX5A=; b=k1yI6KBiUWohpCjwmG621cxwQ0jzDqFvB/rn6EhWTT EZMZpEJLxuyuDkT09Dc05hbBBsg9ekRkpyck6XUD5oL9YLtchycrhO0/4LPeY815 +0KJKCH/Fg5+F/4hVHsDkXLP8zhzd4zIS2yC3uDaheIjYr5VGX+sen791SNzkYla kvtthiVOaxkr3iKgKDAN/+7AXVQcfeYhRfpMtYEv4+BLtC7pQbRzMyePOEnJ8m71 quN3x6qkqE0wLpmLw4NggQazoGhKwVV076Wbubuq0CryqsUFvqPWKHZPalI1TPEp OnDY2MUsdGMwNFcj0KEnAAcI40xIIDDu5K3fB8LoFboQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=zR9iZjkbUtu0k3V/DAnfWVLRUB9xN BhJhSfiuXVIX5A=; b=EHWYVLghbS76fHArEzOiQZBLdQuIjDtU7ZXwYoBYeyetY /Tf2Uw9bGT3hIrJGN8Ok4tWXkV8j313IjQDi5VNwJaQ9avkULrILlQbIWuyaeDl3 m9mnFPla73Ohwu5VYynQBrkowx2NkGAy0ioW2SjZ46G7w+sdwhqi8r6sXA1ZCPTQ WCCUHlJITiG6mxmEagMfeNGofbrgLDnYBsZTbsNEmK5rOROLBx+umnsNcsEeqI5L 7jshsL7uki7VtOw9btIJvl3A9bJpsXE31Jt8/JMBLmDZCxJvFkxU20+wZJlvcr0M NlfI4LtWGvi+CR5M2LO7rccjLPQjXudm8hHSPW5Pg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudekgedgjeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkfgggtgesghdtreertd ertdenucfhrhhomhepuehonhhfrggtvgcuofhunhihohhkihcumfdruceomhgvsegsohhn fhgrtggvmhhunhihohhkihdrtghomheqnecuggftrfgrthhtvghrnhepjeehffejfeelff ffleevgedtgeegvdeftdfgudejtefhtdfgkefhlefggefhvdffnecuffhomhgrihhnpehg nhhurdhorhhgpdhgnhhuphhgrdhnvghtpdhuphgsohhokhgtlhhusgdrtghomhenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmvgessghonhhf rggtvghmuhhnhihokhhirdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 30 Sep 2021 10:23:42 -0400 (EDT) From: Bonface Munyoki K. Date: Thu, 30 Sep 2021 17:23:35 +0300 Message-ID: <865yuif8go.fsf@bonfacemunyoki.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=64.147.123.24; envelope-from=me@bonfacemunyoki.com; helo=wout1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633011856; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=zR9iZjkbUtu0k3V/DAnfWVLRUB9xNBhJhSfiuXVIX5A=; b=fJYNTV1xNH3QQ3x7acsV8BWJaDWIuXCAVMC1mHaZ0hgRhPdWn7t9krrnFU6sFClZZGqshJ WIQD92jVEWGPsX0iWXvAB/YhAcpDLDP6Cj/cTyy4VIqCr42n5VK8vOk4hdPu/s0IqrKDoY gmmUewIqCHrkOBzZRYYzkV9i/V75H0bzDobNv3OTCZO9dpErb40ggPgOY6bZIloL9kjv0A MGkM52X3SgJG7vrzAjOhtypcdQmYHd00n5tKFf0rheDXU0YehitoyRv57kdHH8pnTgB12H zqN/H9cks6oeH9tauafKJh4QlT1C2jNcH3ipbzbJ1L7lvg2vILWXUFT/Xl3UrA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633011856; a=rsa-sha256; cv=none; b=W0O2OFVD9Z6QdC0e6owxkZ8CiKEaB1PbfuQEeMDBQ7IKYBAZHBKVyvOz/j5VB0wB8L6CmY BA+aeeP00CZ/93LDRu1itX1OV3Rmes+GKZSUvKswX1tPmnbtN0d+rva+3MIYeXfs6uow/y oyEGZjA9E8mE9Va56hhG+igkNDKlI2rNENVpxEG9ImuRzvDHBXI7yc3uQgsywEh4u3f7dj 5o0cLNS5x5s/MSJ5KcLPJxMLuJKBtyC8loU4zAnqyyrqVzQtwXMKjwcqpRhp4ICgp3Tzgl u7i0ZaORXkXrIY128ttcK+vWovffUxH5Vt/hZPYIzzB9p0zny4hRgCxswFQW0Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=bonfacemunyoki.com header.s=fm3 header.b=k1yI6KBi; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=EHWYVLgh; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.00 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=bonfacemunyoki.com header.s=fm3 header.b=k1yI6KBi; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=EHWYVLgh; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 19740BD22 X-Spam-Score: -1.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: wWOes9Vjrki6 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Guix! I've tried running a redis server in a container, and interact with it from outside the container as such: =2D-8<---------------cut here---------------start------------->8--- guix environment --ad-hoc --container redis coreutils =2D-8<---------------cut here---------------end--------------->8--- Thereby, when I get the PID of the above running process, I expect that: =2D-8<---------------cut here---------------start------------->8--- guix container PID redis-server --version =2D-8<---------------cut here---------------end--------------->8--- to be the redis version from the container which is *6.2.4*. However, the command gets the underlying redis-server from the host-- an old Debian distribution-- which is at *3.2.6*. In a bid to troubleshoot this, I have tried running: =2D-8<---------------cut here---------------start------------->8--- guix container PID /bin/sh =2D-8<---------------cut here---------------end--------------->8--- which returns a shell from /outside/ the container. Also, I have tried: =2D-8<---------------cut here---------------start------------->8--- guix environment --ad-hoc --container --link-profile =2D-8<---------------cut here---------------end--------------->8--- outside the $HOME directory, and then later: =2D-8<---------------cut here---------------start------------->8--- guix container PID echo $GUIX_ENVIRONMENT =2D-8<---------------cut here---------------end--------------->8--- with the expectation that $GUIX_ENVIRONMENT will output some path from the store. However, I get nothing. Finally, I tried: =2D-8<---------------cut here---------------start------------->8--- guix container exec PID ps aux =2D-8<---------------cut here---------------end--------------->8--- to gain perspective of whether I see the processes from the host's or container's perspective. That command, at least on my end, clearly shows that I am seeing things from the host's perspective. This demonstrates that *guix container* as described in https://guix.gnu.org/manual/en/html_node/Invoking-guix-container.html doesn't not execute from the container; and as such is a bug. =2D-=20 Bonface M. K. D4F09EB110177E03C28E2FE1F5BBAE1E0392253F (hkp://keys.gnupg.net) Free Software Activist Humble GNU Emacs User | Bearer of scheme-y parens Curator: | Twitter: @BonfaceKilz --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJKBAEBCAA0FiEE1PCesRAXfgPCji/h9buuHgOSJT8FAmFVyGoWHG1lQGJvbmZh Y2VtdW55b2tpLmNvbQAKCRD1u64eA5IlP73JEACLIxdzdXK+cNwFL66h6hSvg5ZM C2hlrSiuS3AyqThpM9NFXy+EZfFreRRGAsBNlnwbhLQx6keMGCCqdMEIORdLe2Sq 8J+Mne8QyUokMzHBKKuNwglnRBFlPz1jiBoYNyGyYyXGWX/Dfg+l77uEDtSebHj7 z+yH/6EiO2b2eXMmhWb6znP3X3gsTMJXFC5UOHYmOGIBZtKVHed07s1cPzppuY/8 iD5KJpN7xGj7TkmPQW9uYbov2GVROQDY2gjBC5BCVLiIDQ+8gcwWXl1m2l6UxHlA QhfRVcCZma3DnNA6pZcwMg5bOdM2WBEghmC3TqFD9XReFKHpegWSUmjxiw/mhMQa KtP2pGjqbKNWkgRSSjtEyee6AuslzLgzyVMqebzPkTbT37dnnaC7P/UAZgbNGmGV tdamBg7OHEUTe1VwuM6gsJctMsjqg6Olm1cDN+HPu8/8AnItnxOMYjxIcwfzGhxR XSW07XNXj6BE2B4FkEZ/R4JqBpBMtAMUgmKE8plsnF3R/Swdo3RS3klGageXG+HR LM88oMmu+GGduJDkmNKI8RDfn9ZSBImwolPmwVjEXV4k5dqg0xFKz5utSMzZWhyL X+sohIWJFh/RrGsHv3z26zOUAMO5Fi7j1Cgr7bns3PUC8XvDi7v/NCHhympBnxYn SLkx0tZ1q9SPZkiiVg== =59kr -----END PGP SIGNATURE----- --=-=-=--