Packages/Docker

Docker is a software jailing solution utilizing containers for developing, shipping and running applications without making changes to the live system and enabling tho specification the desired userland.

Installation
Currently the docker installation on Guix requires to run the daemon as the root user.

Adjust your  file with following to install the docker daemon and configure the service:

(use-modules (gnu packages docker)) (use-modules (gnu services docker)) ...

(operating-system ...   (users ...       (supplementary-groups '(... "docker")) ...) ...   (packages (append        (list docker) %base-packages)) ...    (services (append (list (service docker-service-type)))))

To interact with the docker daemon you will need a  package that can (for example) installed using:

$ guix install docker-cli

Consider running the following to verify that your configuration deployed a working docker:

$ docker run hello-world If this throws an error along the lines of, your user might have gotten the the docker group, but guix didn't create it yet. For fixing that, restart your computer.