all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* oci-container-service-type: Add support for creating networks
@ 2024-09-26 19:31 Nicolas Odermatt-Lemay
  2024-09-27 19:29 ` paul
  0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Odermatt-Lemay @ 2024-09-26 19:31 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 832 bytes --]

Hi !
While trying to port a multi-container application meant to be used with
docker-compose to Guix oci-container-service-type, I noticed that
docker-compose creates a single network for all its containers (by
default). Using oci-container-service-type, we can specify a network for
each container but the network needs to exist beforehand, otherwise the
service fails.

So I was wondering if this is something we would want in Guix, the ability
to create a network for a list of containers.

Personally, I ended up adding another shepherd service to create the
network before the containers were created.

If it is something of interest, I'm curious to hear about ideas to
implement this. Adding a field `create-network?' to
`oci-container-service-type' would be a possibility but maybe it is not the
right way to implement this.

[-- Attachment #2: Type: text/html, Size: 993 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-09-27 19:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-26 19:31 oci-container-service-type: Add support for creating networks Nicolas Odermatt-Lemay
2024-09-27 19:29 ` paul

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.