[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: howto: docker service
From: |
zimoun |
Subject: |
Re: howto: docker service |
Date: |
Mon, 2 Dec 2019 11:56:49 +0100 |
Dear,
On Mon, 2 Dec 2019 at 10:13, <address@hidden> 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