Closed trijpstra-fourlights closed 6 months ago
As discussed in #39, I think the best way to handle the service
network_mode
is to provide a better error message suggesting the use of the container
network_mode
and linking to the podman docs. Other suggestions are welcome.
Hi, thanks for your hard work on this!
I noticed that the
network_mode: 'service:xyz'
is not supported, butnetwork_mode: 'container:xyz'
is.The difference between the two:
The service: network mode is useful for inter-container communication within a service. The container: mode can be used to join the networking namespace of an infrastructure container like a proxy or router to share its networking stack.
So service: keeps containers more isolated and portable, while container: ties them more directly to another container's network configuration.
I used the following patch to build the PKGBUILD with support for
service:xyz
and that seems to work.which can be applied by adding the following to the PKGBUILD
I'll try to create a PR later