* Can't open a container-shell
@ 2022-03-02 19:06 Cássio Tavares
2022-03-02 19:10 ` Cássio Tavares
2022-03-03 3:09 ` Dominic Martinez
0 siblings, 2 replies; 4+ messages in thread
From: Cássio Tavares @ 2022-03-02 19:06 UTC (permalink / raw)
To: help-guix
I have created a profile from the attached `manifest.scm`, meant to be used
in a container shell, so as to isolate activity X from the everything else.
After everything was setup, I tried to initiate the shell with this command:
guix shell -c 4 -M 6 --no-cwd --pure --container --network \
--manifest=./etc/manifest.scm \
--share=./home/sys-conf \
--user=sys-conf \
--profile=./home/sys-conf/.guix-profile \
--preserve='^DISPLAY$'
But this doesn't work, and I get this error message:
guix shell: error: "--profile" can't be used with package options
What does this mean? What did I do wrong? And what should I do?
Thanks,
Cássio
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can't open a container-shell
2022-03-02 19:06 Can't open a container-shell Cássio Tavares
@ 2022-03-02 19:10 ` Cássio Tavares
2022-03-03 3:09 ` Dominic Martinez
1 sibling, 0 replies; 4+ messages in thread
From: Cássio Tavares @ 2022-03-02 19:10 UTC (permalink / raw)
To: help-guix
[-- Attachment #1: Type: text/plain, Size: 959 bytes --]
Forgot the attatchment...
On Wed, Mar 2, 2022 at 7:06 PM Cássio Tavares <cassio.ufg@gmail.com> wrote:
>
> I have created a profile from the attached `manifest.scm`, meant to be
> used in a container shell, so as to isolate activity X from the everything
> else. After everything was setup, I tried to initiate the shell with this
> command:
>
> guix shell -c 4 -M 6 --no-cwd --pure --container --network \
> --manifest=./etc/manifest.scm \
> --share=./home/sys-conf \
> --user=sys-conf \
> --profile=./home/sys-conf/.guix-profile \
> --preserve='^DISPLAY$'
>
>
> But this doesn't work, and I get this error message:
>
> guix shell: error: "--profile" can't be used with package options
>
>
> What does this mean? What did I do wrong? And what should I do?
> Thanks,
> Cássio
>
>
>
[-- Attachment #2: manifest.scm --]
[-- Type: text/x-scheme, Size: 355 bytes --]
;;\
;; | This is the manifest for the Guix shell environment
;; +----------------------------------------------------
(specifications->manifest
(list
"guix"
"bash"
"coreutils"
"moreutils"
"guile"
"git"
"guile-gitlab"
"openssh"
"nano"
"less"
"grep"
"exa"
"vim"
"neovim"
"ungoogled-chromium"))
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can't open a container-shell
2022-03-02 19:06 Can't open a container-shell Cássio Tavares
2022-03-02 19:10 ` Cássio Tavares
@ 2022-03-03 3:09 ` Dominic Martinez
2022-03-08 10:49 ` Ludovic Courtès
1 sibling, 1 reply; 4+ messages in thread
From: Dominic Martinez @ 2022-03-03 3:09 UTC (permalink / raw)
To: help-guix
[-- Attachment #1: Type: text/plain, Size: 1168 bytes --]
Cássio Tavares <cassio.ufg@gmail.com> writes:
> I have created a profile from the attached `manifest.scm`, meant
> to be used
> in a container shell, so as to isolate activity X from the
> everything else.
> After everything was setup, I tried to initiate the shell with
> this command:
>
> guix shell -c 4 -M 6 --no-cwd --pure --container --network \
> --manifest=./etc/manifest.scm \
> --share=./home/sys-conf \
> --user=sys-conf \
> --profile=./home/sys-conf/.guix-profile \
> --preserve='^DISPLAY$'
>
>
> But this doesn't work, and I get this error message:
>
> guix shell: error: "--profile" can't be used with package
> options
--profile sources an existing guix profile (which is a group of
package installations), while --manifest or other package
options create a new profile with the defined packages. These
two things are contradictory.
Is there a specific reason you included the --profile flag? I
think you'll probably get the behaviour you imagine without it.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can't open a container-shell
2022-03-03 3:09 ` Dominic Martinez
@ 2022-03-08 10:49 ` Ludovic Courtès
0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2022-03-08 10:49 UTC (permalink / raw)
To: Dominic Martinez, Cássio Tavares; +Cc: help-guix
Hi,
Dominic Martinez <dom@dominicm.dev> skribis:
> Is there a specific reason you included the --profile flag? I think
> you'll probably get the behaviour you imagine without it.
Agreed, you should drop ‘--profile’, Cássio.
HTH,
Ludo’.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-03-08 10:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-02 19:06 Can't open a container-shell Cássio Tavares
2022-03-02 19:10 ` Cássio Tavares
2022-03-03 3:09 ` Dominic Martinez
2022-03-08 10:49 ` Ludovic Courtès
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).