help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Build docker image


From: Bone Baboon
Subject: Re: Build docker image
Date: Sun, 18 Apr 2021 23:48:55 -0400

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".



reply via email to

[Prev in Thread] Current Thread [Next in Thread]