I have a strange problem for a while: 3 nodes based on Debian 9 with latest Rancher (1.6.5) and Docker (17.06.0-ce) - network-services stack contains 3 containers, one for each node, but metadata container inside on two nodes always get the same IP address:
There’s nothing wrong here. The metadata container uses bridged networking so it gets an IP from docker, which are independent on each host. If every host was empty when you started they would all be 172.17.0.2. In this case there were 2 other containers assigned IPs so the one on node01 got .4.
To actually access metadata from inside a container, you use http://rancher-metadata/, or http://169.254.169.250/.