From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:37976) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0noC-0004qQ-I1 for guix-patches@gnu.org; Mon, 04 Mar 2019 08:39:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h0no8-0004mL-Mz for guix-patches@gnu.org; Mon, 04 Mar 2019 08:39:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:45682) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h0no5-0004iG-Nf for guix-patches@gnu.org; Mon, 04 Mar 2019 08:39:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h0no5-0003UX-IJ for guix-patches@gnu.org; Mon, 04 Mar 2019 08:39:01 -0500 Subject: [bug#28128] [PATCH] scripts: system: Add support for container network sharing. Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20170817191334.26269-1-mail@cbaines.net> Date: Mon, 04 Mar 2019 14:38:47 +0100 In-Reply-To: (Arun Isaac's message of "Tue, 19 Feb 2019 13:16:12 +0530") Message-ID: <87h8cisqs8.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Arun Isaac Cc: 28128@debbugs.gnu.org Hello Arun, Arun Isaac skribis: > I need this feature and I'd like to see this patch completed. And, I'm > willing to adopt it if Christopher Baines is unable to find time for > it. May I? Thanks for picking it up, and sorry for the delay! >> What about this: >>=20 >> 1. Remove from =E2=80=98operating-system-etc-service=E2=80=99 all the >> shared-network-related files; >>=20 >> 2. Add a =E2=80=98shared-network-service=E2=80=99 that simply adds tho= se file to >> /etc; >>=20 >> 3. Add a =E2=80=98containerized-operating-system=E2=80=99 that removes= it. >>=20 >> There=E2=80=99s the problem, though, that /etc/hosts can only be added f= rom >> =E2=80=98essential-services=E2=80=99. > > I tried the above, but since /etc/hosts can only be added from > essential-services, we still have to pass around the > #:container-shared-network? argument a lot. What about solving the /etc/hosts issue like this: a. Add in (gnu services) an =E2=80=98hosts-database-service-type=E2=80=99= that would take could be extended with IP/name pairs that it would put in /etc/hosts. b. Have =E2=80=98essential-services=E2=80=99 extend =E2=80=98hosts-databa= se-service-type=E2=80=99. In the container-with-shared-network case we=E2=80=99d arrange to not extend =E2=80=98hosts-database-service-type=E2=80=99, which would thus not produce= /etc/hosts. Does that make sense? HTH, Ludo=E2=80=99.