Docker Community Forums

Share and learn in the Docker community.

Service with exposed port creates multiple networks

docker

(Rogerscuall) #1

I understand that this is not a problem, I just want to understand the reason behind and the meaning of this situation.
For instance let say I have created a new overlay network named net1 and I create a service in this net1. I have noticed that when I create a service in docker without exposing any port, I have only one VirtualIPs assigned to this service, but when I create a service and I expose a port or multiple ports, I can see two VirtualIPs in different networks with different subnets. This second network is the default ingress.
One more time, I would like to understand the idea behind this, please point me into the right direction.
Thanks.