dex4er / nss-docker

NSS module for finding Docker containers
GNU Lesser General Public License v2.1
42 stars 14 forks source link

Support for docker swarm - services #13

Open ieugen opened 1 year ago

ieugen commented 1 year ago

Hi,

I wonder if this could support docker swarm services and their VIP.

Also in docker, a container can have more than one IP based on how many networks it has joined.

root:~# docker service ls 
ID             NAME                       MODE         REPLICAS               IMAGE                                      PORTS
okm1527q4f3s   infra_traefik              replicated   1/1 (max 1 per node)   traefik:v2.10.5   

root:~# ping infra_traefik.docker
ping: infra_traefik.docker: Name or service not known