all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* howto: docker service
@ 2019-12-02  9:12 rndd
  2019-12-02 10:56 ` zimoun
  0 siblings, 1 reply; 2+ messages in thread
From: rndd @ 2019-12-02  9:12 UTC (permalink / raw)
  To: Help Guix

hi, does anybody use docker? some times i need it for my work. and dont have any ideas how to run it =(

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: howto: docker service
  2019-12-02  9:12 howto: docker service rndd
@ 2019-12-02 10:56 ` zimoun
  0 siblings, 0 replies; 2+ messages in thread
From: zimoun @ 2019-12-02 10:56 UTC (permalink / raw)
  To: rndd; +Cc: Help Guix

Dear,

On Mon, 2 Dec 2019 at 10:13, <rndd@tuta.io> wrote:

> hi, does anybody use docker? some times i need it for my work. and dont have any ideas how to run it =(

It depends what you want to do with Docker. The entries point are
"guix pack -f docker" and "guix system docker-image".


For example, the command

--8<---------------cut here---------------start------------->8---
guix pack emacs         \
          -f docker       \
          -C none         \
          -S /bin=bin     \
          -S /lib=lib     \
          -S /share=share \
          glibc-utf8-locales tzdata coreutils bash
--8<---------------cut here---------------end--------------->8---

will populate the store with the Docker image containing emacs and
some other useful stuff. Then, load this generate image and find your
path with Docker:

--8<---------------cut here---------------start------------->8---
docker load < /gnu/store/i0lhyvaw8gfdh95vry2qkd5gzfcl6had-docker-pack.tar
docker run -ti emacs-glibc-utf8-locales-tzdata emacs -nw
--8<---------------cut here---------------end--------------->8---

Even better: use the recent "--manifest=" option. ;-)


Considering more "complex" containers, see the section vm-image,
disk-image, docker-image in the manual [1].

[1] https://guix.gnu.org/manual/en/html_node/Invoking-guix-system.html#Invoking-guix-system

Then you can find inspiration in these recent messages [2] and [3].

[2] https://lists.gnu.org/archive/html/help-guix/2019-11/msg00198.html
[3] https://lists.gnu.org/archive/html/help-guix/2019-11/msg00203.html


Hope that help.

All the best,
simon

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-02 10:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-02  9:12 howto: docker service rndd
2019-12-02 10:56 ` zimoun

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.