swarmkit icon indicating copy to clipboard operation
swarmkit copied to clipboard

Add multi-container tasks to share namespaces within services

Open ChristianKniep opened this issue 8 years ago • 2 comments

I am wondering if a tasks can be redefined as not only tied to one container but multiple, which are able to share namespaces (like Kubernetes PODS)?

This would allow for a proxy container (e.g. lyft/envoy, nginx) to do its magic like TLS termination,logging,tracing,... communicating via localhost to a service providing container service.

version: '4'
services:
  http:
    group:
     shared-namespaces: [network]
      components:
        web:
          # service only serving on 127.0.0.1
          image: nginx
        proxy:
          # service proxying 127.0.0.1:80 to 0.0.0.0:8080 
          image: envoy
          ports: [8080:8080]

ChristianKniep avatar Jun 28 '17 18:06 ChristianKniep

I'd still love to see this feature added 🥺

cecilphillip avatar Aug 09 '20 21:08 cecilphillip

I would love this as well. It's actually the one and only killer feature that Swarm lacks ...

bquenin avatar Jan 07 '21 16:01 bquenin