From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OM96I5pAe2BlEAAAgWs5BA (envelope-from ) for ; Sat, 17 Apr 2021 22:10:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id kDVIH5pAe2DvVQAA1q6Kng (envelope-from ) for ; Sat, 17 Apr 2021 20:10:02 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EB302D75D for ; Sat, 17 Apr 2021 22:10:01 +0200 (CEST) Received: from localhost ([::1]:36896 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXrGT-0005oy-57 for larch@yhetil.org; Sat, 17 Apr 2021 16:10:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43814) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXrGD-0005oa-RP for help-guix@gnu.org; Sat, 17 Apr 2021 16:09:45 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:45767) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXrG0-00070w-6L for help-guix@gnu.org; Sat, 17 Apr 2021 16:09:43 -0400 X-Originating-IP: 185.213.154.167 Received: from neinpad (unknown [185.213.154.167]) (Authenticated sender: mail@davie.li) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id E008920002; Sat, 17 Apr 2021 20:09:25 +0000 (UTC) References: <87r1jheb0y.fsf@disroot.org> User-agent: mu4e 1.4.15; emacs 27.2 From: David Dashyan To: Bone Baboon Subject: Re: Build docker image In-reply-to: <87r1jheb0y.fsf@disroot.org> Date: Sat, 17 Apr 2021 23:05:56 +0300 Message-ID: <878s5g3cd7.fsf@davie.li> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.200; envelope-from=mail@davie.li; helo=relay7-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618690202; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=8h7VJip1J/pWinMSh9RZH7fZY8nD0CNfQ+jawIiarT4=; b=YWJzP+NUD7isk+qBuUbZE8o4wQUxanebCEsPaSu1sPEMTM/tFjjLdIfPjywqZT3CoALRB2 nZet0cgQ3MqV6iGvYEe+hS/1MLssy3S65nGLgbpgEky4bAWVCu/9TSAiQFTdY6LHVXhTiH lEjmaqY8D+Qj28Ws3UhJP9QJ6NrtbGgEtxTC7mMOEDa/rXnVFRPT8sNJHQxMFuo6xZZrcI riNVAyr5gs0jHcs968BzlYAwI52FvTy/AYLnFUIfcQKrtnJ8a9EZW/SO9R3fRnd3eB3XP7 hs4Rku4yKlsepSN1FIl+WTx6OO1i3MlvWDm0PT2h02wVTdVobbkKa+CmcVi6ow== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618690202; a=rsa-sha256; cv=none; b=AfQuiaENJv2nRMI00XKh3WyLONwuVOQC608fqYDoVYsbHX+hjznw7S47yG1Z276bnaetDI o6LQuxj6ZPgVr8ryjAy91ClaUjbbvWBZ9Fswx7uK2cyzn9RTt5AEXU089Ap0CGkrXJxdqW qIXDRMXXtUpYIqvRZA6+/RK2iyKemSHUyWxC/TTIrBjHJOWMM4Ike80SiHMtUw4/XBOVhg Zi9do0gZJ3BkWaSqDYQ9p5pYwcjLATxubAkv8XCNr8lVu3E9MAQ6etlcwaRa8Se3fJMeZ/ PDvPnGR+bkvknRvRCKbW2eYLUtTWnoveR3d+h1hnWHBehozQ/+1+hmb1ObICZA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.44 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: EB302D75D X-Spam-Score: -2.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: yoD6uaOaIELd 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". Hey Bone Baboon! It is not 100% clear from your message how do you want to build a docker image. I'm assuming that you want to use standard docker tooling and you want to have docker daemon on YOUR system. Correct me I'm wrong here. Dockder service is one of the services that extends shepherd-root-service-type. They form dependency graph which is different from extension graph you might have red in guix manual. Each shepherd service has "provision" field that defines list of simbols that it provides and "requirement" field (defaulting to '()) that defines which services it requeres to run. Shepherd uses this information to spawn services in right order. But in your case procedure assert-valid-graph (found in guix) warned you that graph is invalid instead of producing shepherd configuration that will fail when you will boot. So. You need a service that provisionts 'networking! You should probably just use %desktop-services service list like so in your config. It contains bunch of services you normaly need including network-manager-service. (operating-system ... (services (append (list ;; list of your services goes here (service xfce-desktop-service-type) ;; your wm of choice (service docker-service-type)) ;; docker daemon %desktop-services))) > I have added `docker` and `docker-cli` to my system configuration and > reconfigured the system. The `docker` command needs a docker daemon > running. Note also that you dont need to add packages to system configuration to use them. You could just install it for your user profile. But there are other ways to build docker images on guix like guix system vm docker-image yourconf.scm or guix pack -f docker -S /bin=bin Check out info manual for these comands in guix if you havent yet :) -- David aka zzappie