From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id CPBoDZmDbGW9JwAAauVa8A:P1 (envelope-from ) for ; Sun, 03 Dec 2023 14:33:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id CPBoDZmDbGW9JwAAauVa8A (envelope-from ) for ; Sun, 03 Dec 2023 14:33:13 +0100 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 1559B41B29 for ; Sun, 3 Dec 2023 14:33:13 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=rdklein.fr header.s=zoho header.b=cR5Vs9ff; arc=pass ("zohomail.eu:s=zohoarc:i=1"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1701610393; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=HJV0TQJ+VXgBghQ6T1tdY5ASKHbDxDDyf/36Ai3RIf4=; b=Sg/Up7KswMV3/PUIZE7f9Tq5Cxeh9fuHUpMa63nzOyqbtCVBRJ7VFadUGXwbnU14Bv/fWr 03SzMHfQeTGw0uwzjM0WgbRxb6r2W4MYJnCiwyD6dUCI4ag4dzJiU2jUEhd/QKvOr3Tzkk KkI3FjP2EQY2twUBo0XMq3/RA22JQaBgc6xWUHh1uAKB0AOc/XUdsm4BceJw75jE0ZPupa Ml1lZiH0+nFtvHtEBBCHDaAPSEuQkaNGwXc76n9CN3hShPYz4zCEUM+3TzGvKO+KeJmGVH Zh3WJHMK6lzOCOkBK0t66txah9slEheqT+iKP85ACIEioi+fnDv8qea4CaKNSw== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1701610393; a=rsa-sha256; cv=pass; b=oOAOoBYXkyI48H4K4cfDs2knWa+IjmF4GbZVp3f3ANNXuZ4zEDJQ3vbCGgGeDHsloQm6+Z a0IRg2NdLDKMdFrDtRfgpgOK8FY4wwkp1ve588dW47VtF/mbmlfnqqBoICdfMVHvdeqn/s WL5yBXuKnAzSj+oVBE8f6+Whd5PpNKxhFuP0vXrBNKNQC2f+fWGhVDG5IBR4YuVe03IFUs gQg5b9ASF+f+ujAGJ66+xCuscuuriGM0GBhFMvXFQLfFmadgQ6jKtRuQWb1VxNybd1tLEg YsJBcnmOmhe9TMchErzwxTna9CAK1v3J3PzVZ3XaGo+4+0Sw4CRFhznF/HgqJA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=rdklein.fr header.s=zoho header.b=cR5Vs9ff; arc=pass ("zohomail.eu:s=zohoarc:i=1"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r9maT-0007TI-Fe; Sun, 03 Dec 2023 08:32:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r9maP-0007T5-28 for help-guix@gnu.org; Sun, 03 Dec 2023 08:32:41 -0500 Received: from sender-op-o9.zoho.eu ([136.143.169.9]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r9maM-0003r9-RI for help-guix@gnu.org; Sun, 03 Dec 2023 08:32:40 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1701610354; cv=none; d=zohomail.eu; s=zohoarc; b=A3WdBP+7R+kQq6zAGtJeAV22M2NqSPoPgsSezFvLKLWNCjmuaRlA/ddaiIEVL5bXERS8BfLfLycGhYT03cGMrTvsM14dPHJxp+YIUNDhn1RhL8kSXqTXAGDPDg5OdXf+64cI0HkCEjeIIboZwKPcU2+CgyG+6E6G/Kw5BhX8msY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1701610354; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=HJV0TQJ+VXgBghQ6T1tdY5ASKHbDxDDyf/36Ai3RIf4=; b=U9VURqdhRx0etZybuA6t9Qd2pJ61VFqVfZkUD5G2192/+fBtF7/+Vqhfjc4g2ruJx95wOlbYtW9blC1z4e1UOKnNsUJ+dNel8b9NOHcBwWGtM9WAfN0UvZEADkJpk88pDnrS3weKs32aaFCJyZEolIgtMDSudRdTjgCHZSBvCLU= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=rdklein.fr; spf=pass smtp.mailfrom=edou@rdklein.fr; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1701610354; s=zoho; d=rdklein.fr; i=edou@rdklein.fr; h=References:From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:In-reply-to:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=HJV0TQJ+VXgBghQ6T1tdY5ASKHbDxDDyf/36Ai3RIf4=; b=cR5Vs9ffICW5y3j0DickEWhbUAIhBt+fhtpm3AjeN1fGwXTok1rTHgKozNHkcp8F vPSRXRWxNwCYiejz0sHzsfwn0iqWFPiVAm1qEzEIuapPIrwiHLn9MTQy5UL7Sp1WUC6 RMeFYzYqAPm2MAELYkbjeYlfoEI1kuHijtNJFkvaHhx2RmZtbxNRGYT04rPWD+zxx/V x13iDYXa7Xmvyy1KNITFG1Fa5rC6cj7BegtnVWAukKjQjJ9KizLKKQkukfqBfjhFjJl Mv/5GG8wOw1+jO9BYmaQMVxqXrQNh92xiQq6H/CVIvsA2RNsKNRH79EDSN8O5Sy9uLs GaQiyQd1Yw== Received: from schwarzy (lfbn-idf3-1-667-244.w86-252.abo.wanadoo.fr [86.252.237.244]) by mx.zoho.eu with SMTPS id 1701610352811860.4904840215142; Sun, 3 Dec 2023 14:32:32 +0100 (CET) References: <4b3e279c-fd6e-fe50-6fb0-e253d2946679@bluehome.net> <20231127230912.04447c38.koszko@koszko.org> User-agent: mu4e 1.10.2; emacs 28.2 From: Edouard Klein To: Wojtek Kosior Cc: Caleb Herbert , help-guix@gnu.org Subject: Re: Installing software inside containers Date: Sun, 03 Dec 2023 14:27:27 +0100 In-reply-to: <20231127230912.04447c38.koszko@koszko.org> Message-ID: <875y1ftnrr.fsf@rdklein.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.169.9; envelope-from=edou@rdklein.fr; helo=sender-op-o9.zoho.eu X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -10.04 X-Spam-Score: -10.04 X-Migadu-Queue-Id: 1559B41B29 X-TUID: wW6prMM92TAl Hi ! If you create you containers with guix shell, you can use the --nesting option, or alternatively, use: guix shell --container --network --expose=3D/gnu/ --share=3D/var/guix/ guix Maybe similar options with a 'guix system'-generated container would work. Alternatively, if your own guix has a non standard configuration, you can create a profile from outside the container: guix install --profile=3D/whatevs some-software and then, from inside the container, use guix shell --profile=3D/whatevs it will make the software available, even if the container's guix has no knowledge of it. Cheers, Edouard. Wojtek Kosior via writes: > [[PGP Signed Part:Undecided]] > Hi Caleb, nice to meet folks from Trisquel forum here :) > >> Also, how do I map arbitrary directories? With Podman, I would do >> >> /home/$USER/.container/home/user:/home/user > > You can pass `--share=3D"/home/$USER/.container/home/user"=3D/home/user` = :) > > I can't help much with nesting Guix in a system container, tho =E2=80=94 = I'd > myself like to know if it is supported. I merely recall it's possible > with `guix shell -C` container. But a simple shell won't do in all > cases, I know > > Wojtek > > -- (sig_start) > website: https://koszko.org/koszko.html > fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A > follow me on Fediverse: https://friendica.me/profile/koszko/profile > > =E2=99=A5 R29kIGlzIHRoZXJlIGFuZCBsb3ZlcyBtZQ=3D=3D | =C3=B7 c2luIHNlcGFyY= XRlZCBtZSBmcm9tIEhpbQ=3D=3D > =E2=9C=9D YnV0IEplc3VzIGRpZWQgdG8gc2F2ZSBtZQ=3D=3D | ? U2hhbGwgSSBiZWNvbW= UgSGlzIGZyaWVuZD8=3D > -- (sig_end) > > > On Sun, 26 Nov 2023 15:42:28 -0600 Caleb Herbert wrote: > >> Hi Guix, >> >> I can't install software inside a Guix System container. I need this to >> use Guix Home inside a container. >> >> $ guix install hello >> guix install: error: remounting /gnu/store writable: Operation not permi= tted >> >> Do I need to --share=3D/gnu/store? >> >> I tried sharing a blank ./gnu directory, but it complained that there >> were no programs to run the system. >> >> (Is sharing the host's /gnu/store with a container safe?) >> >> I created the container with >> >> guix system container --network --share=3Dhome container.scm >> >> Also, how do I map arbitrary directories? With Podman, I would do >> >> /home/$USER/.container/home/user:/home/user >> >> Thanks, >> >> Caleb >> > > [[End of PGP Signed Part]]