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.

Reply via email to