all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Konrad Hinsen <konrad.hinsen@fastmail.net>
Cc: Guix Devel <guix-devel@gnu.org>
Subject: Re: Creating a container from a container
Date: Thu, 13 Oct 2022 17:04:15 +0200	[thread overview]
Message-ID: <871qrbpxxs.fsf@gnu.org> (raw)
In-Reply-To: <m17d15otuv.fsf@fastmail.net> (Konrad Hinsen's message of "Wed, 12 Oct 2022 19:05:28 +0200")

Hello!

Konrad Hinsen <konrad.hinsen@fastmail.net> skribis:

> I am trying to run "guix shell -C" inside another container created with
> "guix shell -C". I figured out that I need to take care of three
> aspects:

I realize I had never tried this, but it sounds fun.  :-)

This works well for me:

--8<---------------cut here---------------start------------->8---
$ guix describe
Generation 232  Oct 13 2022 16:14:01    (current)
  guix 8b192c5
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 8b192c5550213911f930594f4fd7386f36618237
$ guix shell --expose=/gnu/store --expose=/var/guix/daemon-socket -C guix -- guix shell -C coreutils
[env]$ ls /gnu/store/
094bbaq6glba86h1d4cj16xhdi6fk2jl-gcc-10.3.0-lib
5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33
720rj90bch716isd8z7lcwrnvz28ap4y-bash-static-5.1.8
8fpk2cja3f07xls48jfnpgrzrljpqivr-coreutils-8.32
9rrnm5hdjw7cy96a2a9rfgh6y08wsbmf-ncurses-6.2.20210619
a38k2v29l6l0iz6pmlk4dmzwdbvl10lq-acl-2.3.1
a7ggx0af69gv4k5mr1k617p4vy9kgx2v-libcap-2.62
d99ykvj3axzzidygsmdmzxah4lvxd6hw-bash-5.1.8
fwbiihd2sbhai63y1pvvdh0f2bakfzrf-gmp-6.2.1
jkjs0inmzhj4vsvclbf08nmh0shm7lrf-attr-2.5.1
jlp9lzac8bcd6dlfmgzy2wsplz7nwb8r-profile
sp6gqzyczlnxas8pmhpsjfn4lv2az4n0-emacs-subdirs
wcwls45278gzpjvwlvrrs1y7h30g44xh-readline-8.1.1
xx946lncjfqic6dg1pgaisg09jy8fqka-info-dir
--8<---------------cut here---------------end--------------->8---

> With those precautions, my setup works some of the time but in other
> conditions (which I haven't yet identified) I get the error message
>
>   guix shell: error: mount: mount "none" on "/tmp/guix-directory.K4MoFR/sys": Operation not permitted

It’s weird that it’s not deterministic.

Could you prepend your command with:

  strace -f -o /tmp/log -s 100

and share /tmp/log?

What does ‘uname -rv’ report?

Is this on a foreign distro?

Thanks,
Ludo’.


  parent reply	other threads:[~2022-10-13 15:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-12 17:05 Creating a container from a container Konrad Hinsen
2022-10-13 13:50 ` Konrad Hinsen
2022-10-13 15:04 ` Ludovic Courtès [this message]
2022-10-13 15:30   ` Konrad Hinsen

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871qrbpxxs.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=konrad.hinsen@fastmail.net \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.