From: Bone Baboon <bone.baboon@disroot.org>
To: help-guix@gnu.org
Subject: Re: Build docker image
Date: Sun, 18 Apr 2021 23:48:55 -0400 [thread overview]
Message-ID: <87pmyrkk7s.fsf@disroot.org> (raw)
In-Reply-To: <87r1jheb0y.fsf@disroot.org>
I have got the dockerd service working.
I ran into many error messages along the way.
"guix system: error: service 'dockerd' requires 'networking', which is
not provided by any service"
This was solved with `dhpc-client-service-type`.
"guix system: error: service 'dockerd' requires 'dbus-system', which is
not provided by any service"
This was solved with `dbus-service`.
"guix system: error: service 'dockerd' requires 'elogind', which is not
provided by any service"
This was solved with `elogind-service-type`.
I made these additions to my system configuration to get the dockerd
service working.
I added these imports:
```
((gnu services dbus) #:select (dbus-service))
((gnu services desktop) #:select (elogind-service-type))
((gnu services docker) #:select (docker-service-type))
((gnu services networking) #:select (dhcp-client-service-type))
```
I added these to the services section of the operation system
declaration:
```
(service dhcp-client-service-type)
(dbus-service)
(service elogind-service-type)
(service docker-service-type)
```
Then I reconfigured the system.
`sudo herd start dockerd` was not working. I restarted the computer and
dockerd was working.
Now `docker build -t <tag> .` is successful.
Bone Baboon writes:
> I am trying to build a docker image.
>
> I have added `docker` and `docker-cli` to my system configuration and
> reconfigured the system. The `docker` command needs a docker daemon
> running.
>
> I have added the docker service to the system configuration file with
> `(service docker-service-type)` in the list of services. When I try to
> reconfigure the system I get this error message "guix system: error:
> service 'dockerd' requires 'networking', which is not provided by any
> service".
prev parent reply other threads:[~2021-04-19 3:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-11 3:49 Build docker image Bone Baboon
2021-04-17 20:05 ` David Dashyan
2021-04-19 3:27 ` Bone Baboon
2021-04-27 17:11 ` David Dashyan
2021-04-27 17:16 ` David Dashyan
2021-04-19 3:48 ` Bone Baboon [this message]
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=87pmyrkk7s.fsf@disroot.org \
--to=bone.baboon@disroot.org \
--cc=help-guix@gnu.org \
/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).