* guix pack -f docker ...
@ 2019-03-01 1:12 Yoshinori Arai
2019-03-01 7:48 ` Julien Lepiller
0 siblings, 1 reply; 5+ messages in thread
From: Yoshinori Arai @ 2019-03-01 1:12 UTC (permalink / raw)
To: help-guix
Hello,
I'm trying possibility of guix pack especially docker or squashfs for
singularity.
I have tried guix pack -f docker emacs geiser guile.
$ cp /gnu/store/ywrxbn8ik9bmj4xhd5yybwvs069v9vv9-docker-pack.tar.gz \
./emacs-geiser-guix.docker.tar.gz
$ docker load < emacs-geiser-guix.docker.tar.gz
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
mongo latest 0da05d84b1fe 3 weeks ago 394MB
hello-world latest fce289e99eb9 8 weeks ago 1.84kB
profile zy3irqp7vsiyk28ns3xliakll07p9cz4 4dfc15f321bd 49 years ago 966MB
$ docker run -it --name my-emacs profile:zy3irqp7vsiyk28ns3xliakll07p9cz4 emacs
docker: Error response from daemon: OCI runtime create failed:
container_linux.go:344: starting container process caused "exec:
\"emacs\": executable file not found in $PATH": unknown.
I don't know about docker well.
This traial was on foreign distro debian 9. Docker was installed from debian.
Please tell me how to use guix pack -f docker ...
Thank you.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: guix pack -f docker ...
2019-03-01 1:12 guix pack -f docker Yoshinori Arai
@ 2019-03-01 7:48 ` Julien Lepiller
2019-03-01 9:24 ` zimoun
2019-03-01 11:26 ` Yoshinori Arai
0 siblings, 2 replies; 5+ messages in thread
From: Julien Lepiller @ 2019-03-01 7:48 UTC (permalink / raw)
To: help-guix, Yoshinori Arai
Le 1 mars 2019 02:12:19 GMT+01:00, Yoshinori Arai <kumagusu08@gmail.com> a écrit :
>
>Hello,
>
>I'm trying possibility of guix pack especially docker or squashfs for
>singularity.
>
>I have tried guix pack -f docker emacs geiser guile.
>$ cp /gnu/store/ywrxbn8ik9bmj4xhd5yybwvs069v9vv9-docker-pack.tar.gz \
> ./emacs-geiser-guix.docker.tar.gz
>$ docker load < emacs-geiser-guix.docker.tar.gz
>$ docker images
>REPOSITORY TAG IMAGE ID CREATED
> SIZE
>mongo latest 0da05d84b1fe 3 weeks
>ago 394MB
>hello-world latest fce289e99eb9 8 weeks
>ago 1.84kB
>profile zy3irqp7vsiyk28ns3xliakll07p9cz4 4dfc15f321bd 49 years
>ago 966MB
>$ docker run -it --name my-emacs
>profile:zy3irqp7vsiyk28ns3xliakll07p9cz4 emacs
>docker: Error response from daemon: OCI runtime create failed:
>container_linux.go:344: starting container process caused "exec:
>\"emacs\": executable file not found in $PATH": unknown.
>
>I don't know about docker well.
>This traial was on foreign distro debian 9. Docker was installed from
>debian.
>Please tell me how to use guix pack -f docker ...
>
>Thank you.
Hi,
I think you were doing fine, but you're missing one option. You should have run something like "guix pack -f docker -S /bin=bin". Acording to the manual:
For instance, -S /opt/gnu/bin=bin creates a /opt/gnu/bin symlink pointing to the bin sub-directory of the profile.
Now emacs is available as /bin/emacs inside the container.
See https://www.gnu.org/software/guix/manual/en/html_node/Invoking-guix-pack.html#Invoking-guix-pack for more details.
HTH
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-03-01 12:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-01 1:12 guix pack -f docker Yoshinori Arai
2019-03-01 7:48 ` Julien Lepiller
2019-03-01 9:24 ` zimoun
2019-03-01 12:14 ` Yoshinori Arai
2019-03-01 11:26 ` Yoshinori Arai
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.