Docker Community Forums

Share and learn in the Docker community.

Identify overlay networks from the inside of the container

docker

(Mikesam) #1

I have a process inside my docker container that is attached to multiple overlay networks and it must only bind to a specific overlay network interface (it knows its name) so that the rest of the containers in that overlay network would be able to talk to it.

How can a container identify which one of its given network interfaces is which overlay network interface from the inside?