From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YMVDI9v4fGB3TQAAgWs5BA (envelope-from ) for ; Mon, 19 Apr 2021 05:28:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id OPzPHtv4fGDwHgAAbx9fmQ (envelope-from ) for ; Mon, 19 Apr 2021 03:28:27 +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 CA59B2A5B6 for ; Mon, 19 Apr 2021 05:28:26 +0200 (CEST) Received: from localhost ([::1]:33564 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYKaG-0003Ge-7d for larch@yhetil.org; Sun, 18 Apr 2021 23:28:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46860) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYKZz-0003GD-Pq for help-guix@gnu.org; Sun, 18 Apr 2021 23:28:12 -0400 Received: from knopi.disroot.org ([178.21.23.139]:45768) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYKZv-0008TF-RB for help-guix@gnu.org; Sun, 18 Apr 2021 23:28:07 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 5626450D2C; Mon, 19 Apr 2021 05:27:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VCAFB2ece4gE; Mon, 19 Apr 2021 05:27:58 +0200 (CEST) References: <87r1jheb0y.fsf@disroot.org> <878s5g3cd7.fsf@davie.li> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1618802878; bh=BMWaHmwYCH2UCZ9CYMBuZbZIkO2gOtxHlDvNVkBev+8=; h=References:From:To:Cc:Subject:In-reply-to:Date; b=mJJf55rAM+l976XtooQLDPbqnnIuKPsnlyiTTCd8XDSlEUZ36riu1vXvjVUUqeaVp 72n2/bGyGxNtIaUy+ahLZu1/IGACmKXVNXL1OzhufNsBqX0mvPf6fsiaqEwt4ip0zY 5UdSIQS3DvNj2TbzMnwiftxx0XIzWhQBIUwiyn1IxHM6H8l8mclt6gs2lfBFg7y563 I1bASwnRiAeay95yp6LOCY/olYrj7iUAq5Di6tDW3Hk3Bo5eGvOzH9oS9pg2PhagAH PC/ceT/6ubKbDRrpMFtmfSUqdCpTZtESd+zQNs/9EHkSlB1EcuCyvZxVBaOp1CqvzF XhGzJcN7ioGPQ== From: Bone Baboon To: David Dashyan Cc: help-guix@gnu.org Subject: Re: Build docker image In-reply-to: <878s5g3cd7.fsf@davie.li> Date: Sun, 18 Apr 2021 23:27:56 -0400 Message-ID: <87r1j7kl6r.fsf@disroot.org> Mime-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=178.21.23.139; envelope-from=bone.baboon@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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: , 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=1618802907; 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:dkim-signature; bh=XylyBCbg5gCn2lgN31ozaIbIMj3PdmDhxdb4JVPWak4=; b=B2Z3RCOEvUxfivnugwvyjwDfmr8FVdvqHirpYr/Z2jtUTIwSJhzj1MlK9nXlmz/l5LmnwB HmjMTQdVIFTpB7O0LM0CVJeWDVMjhUmr23yKz2Op/39vg5kKM/oVynAg0685tSgwGuroie +RKvd1VTogOjWfA+EdnnIkEJ5pL+wy0K5qj6tZkwY+Vdq6+1mByUwAS4Dvc1PK6oE59ZCm OhsWpSvmnFWahc8C0PdBv4Q4e0CkCKTtUn/eOEMXXEmCPa9V1Ic0fxJGyfpqz72zlaubaN Pf7SMilkDxZ72+j8f7DDQTjp9jjxqw546d9Y6ZWjPyF3OsU79EJodY5JWTpB8w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618802907; a=rsa-sha256; cv=none; b=JT+Wh8TIMnG3IZAOxTiRZ2crxTtDDA9cgb+QMd51CwdZ3AwjfZOw//PrMpps1w6yV2t1tN IWnhiq+NKnm5v4WQi67Z07y6562BDaKQKpyrvFjNO/AmMTCSEDgeNQrfGZMYx10U/CApk3 EcA1tt6V5nNeGTYahTNfH2hW1/7Zqgl4Zsqt1TuQdjZzeBlJKt3KC58wu+ChdaxZmeNuVQ pLNvg0Gh5C9R+HrdX5Z02WdZ14pjmrkEisXewHyr6/Jq/bjXs4iQrGtyoZljEXUZHBMDNm nO3HHdxd/ruFTL2K2yxfj7cQwjNw+i2vbsUo0unrPX7QO633eO7Ls3x9+RYcHg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=mJJf55rA; dmarc=pass (policy=quarantine) header.from=disroot.org; 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.64 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=mJJf55rA; dmarc=pass (policy=quarantine) header.from=disroot.org; 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: CA59B2A5B6 X-Spam-Score: -2.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: xwYDsTDmBzyo David Dashyan writes: > 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. Yes that is correct `docker build -t .` with a local docker daemon. > 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. This is a nice feature. > So. You need a service that provisionts 'networking! It seems odd that a service does not take care of services it needs. It makes me think of a package that does not include the dependencies it needs to run. > 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))) Thank you for this suggestion. There is a lot in %desktop-services that I do not need on my system. I am also trying to explicitly state imports so that I can learn more about the parts of the Guix repository I am using. > Note also that you dont need to add packages to system configuration to > use them. You could just install it for your user profile. Thank you for pointing this out. > 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 :) I am aware of these features and plan to explore them.