gliderlabs / registrator

Service registry bridge for Docker with pluggable adapters
http://gliderlabs.com/registrator
MIT License
4.66k stars 912 forks source link

Docker macvlan network and container ip #654

Open MatthiasKammerlohr opened 5 years ago

MatthiasKammerlohr commented 5 years ago

Hi,

we ware using docker swarm and macvlan networks to attach the containers direct to production network. Is it possible to register containers directly with container ip from the macvlan network?

ps we are using registrator:master.

Many thanks

minusdelta commented 5 years ago

Mathias,

the "-internal" flag is what you are looking for - I use it with macvlan networks and it works fine. But you have to decide, you cannot use this with "docker0 bridge external ip announcing" in parallel.

MatthiasKammerlohr commented 5 years ago

Hi minusdelta,

thank you - thats what i´m looking for! Works great :)