guix-patches
[Top][All Lists]
Advanced

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

[bug#28128] [PATCH] scripts: system: Add support for container network s


From: Ludovic Courtès
Subject: [bug#28128] [PATCH] scripts: system: Add support for container network sharing.
Date: Mon, 04 Mar 2019 14:38:47 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Hello Arun,

Arun Isaac <address@hidden> 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:
>> 
>>   1. Remove from ‘operating-system-etc-service’ all the
>>   shared-network-related files;
>> 
>>   2. Add a ‘shared-network-service’ that simply adds those file to
>>   /etc;
>> 
>>   3. Add a ‘containerized-operating-system’ that removes it.
>> 
>> There’s the problem, though, that /etc/hosts can only be added from
>> ‘essential-services’.
>
> 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 ‘hosts-database-service-type’ that would
     take could be extended with IP/name pairs that it would put in
     /etc/hosts.

  b. Have ‘essential-services’ extend ‘hosts-database-service-type’.

In the container-with-shared-network case we’d arrange to not extend
‘hosts-database-service-type’, which would thus not produce /etc/hosts.

Does that make sense?

HTH,
Ludo’.





reply via email to

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