From: Wojtek Kosior via <help-guix@gnu.org>
To: Caleb Herbert <csh@bluehome.net>
Cc: help-guix@gnu.org
Subject: Re: Installing software inside containers
Date: Mon, 27 Nov 2023 23:09:12 +0100 [thread overview]
Message-ID: <20231127230912.04447c38.koszko@koszko.org> (raw)
In-Reply-To: <4b3e279c-fd6e-fe50-6fb0-e253d2946679@bluehome.net>
[-- Attachment #1: Type: text/plain, Size: 1682 bytes --]
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="/home/$USER/.container/home/user"=/home/user` :)
I can't help much with nesting Guix in a system container, tho — 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
♥ R29kIGlzIHRoZXJlIGFuZCBsb3ZlcyBtZQ== | ÷ c2luIHNlcGFyYXRlZCBtZSBmcm9tIEhpbQ==
✝ YnV0IEplc3VzIGRpZWQgdG8gc2F2ZSBtZQ== | ? U2hhbGwgSSBiZWNvbWUgSGlzIGZyaWVuZD8=
-- (sig_end)
On Sun, 26 Nov 2023 15:42:28 -0600 Caleb Herbert <csh@bluehome.net> 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 permitted
>
> Do I need to --share=/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=home container.scm
>
> Also, how do I map arbitrary directories? With Podman, I would do
>
> /home/$USER/.container/home/user:/home/user
>
> Thanks,
>
> Caleb
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2023-11-27 22:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-26 21:42 Installing software inside containers Caleb Herbert
2023-11-27 22:09 ` Wojtek Kosior via [this message]
2023-12-03 13:27 ` Edouard Klein
2023-12-19 21:59 ` Edouard Klein
2023-12-20 21:27 ` Caleb Herbert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231127230912.04447c38.koszko@koszko.org \
--to=help-guix@gnu.org \
--cc=csh@bluehome.net \
--cc=koszko@koszko.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).