unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: Roy Lemmon <roy@roylemmon.com>
Cc: help-guix@gnu.org
Subject: Re: docker
Date: Fri, 10 Jul 2020 14:09:47 +0200	[thread overview]
Message-ID: <87d053k1v8.fsf@elephly.net> (raw)
In-Reply-To: <CAH5rZC6Cxixg6XJYb24XcWw5xairWBms-mt7ESzwiMeQ7ionHA@mail.gmail.com>


Hi Roy,

> I would like to run a docker application on my guix system. However I need
> to have the docker daemon running. Do I simply add this to my config.scm
> file e.g:
>
> (use-modules (gnu) (docker) )

No, this would load the (gnu) module and the non-existant (docker)
module.  If we had a (docker) module this still wouldn’t do what you
want, as it would only make code available.

Please take a look at the Guix manual.  In section “8.8.31 Miscellaneous
Services” there is a heading “Docker Service” (I found this by hitting
“i” for “index” in my Info reader, followed by “docker”).  It says this:

--8<---------------cut here---------------start------------->8---
The ‘(gnu services docker)’ module provides the following services.

 -- Scheme Variable: docker-service-type

     This is the type of the service that runs Docker
     (https://www.docker.com), a daemon that can execute application
     bundles (sometimes referred to as “containers”) in isolated
     environments.

 -- Data Type: docker-configuration
     This is the data type representing the configuration of Docker and
     Containerd.

     ‘package’ (default: ‘docker’)
          The Docker package to use.

     ‘containerd’ (default: CONTAINERD)
          The Containerd package to use.

     ‘proxy’ (default DOCKER-LIBNETWORK-CMD-PROXY)
          The Docker user-land networking proxy package to use.

     ‘enable-proxy?’ (default ‘#f’)
          Enable or disable the use of the Docker user-land networking
          proxy.

     ‘debug?’ (default ‘#f’)
          Enable or disable debug output.
--8<---------------cut here---------------end--------------->8---

This is from a section on system services, so you’ll need to add
something like this to your configuration file:

--8<---------------cut here---------------start------------->8---
(use-modules (gnu services docker))
…
(operating-system
  …
  (services (cons* (service …)
                   (service …)
                   …
                   (service docker-service-type
                            (docker-configuration
                              (debug? #t)))
                   …))
  …)
--8<---------------cut here---------------end--------------->8---

If you don’t need any extra configuration “(service
docker-service-type)” should be sufficient.

-- 
Ricardo


  reply	other threads:[~2020-07-10 12:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-10 10:17 docker Roy Lemmon
2020-07-10 12:09 ` Ricardo Wurmus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-11-14 14:54 docker rndd
2019-11-14 16:58 ` docker zimoun
2019-11-14 17:01   ` docker zimoun
2019-11-16 18:18 ` docker Efraim Flashner
     [not found]   ` <Ltt3MzU--3-1@tuta.io>
2019-11-17 19:17     ` docker Efraim Flashner

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=87d053k1v8.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=help-guix@gnu.org \
    --cc=roy@roylemmon.com \
    /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.
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).