We have two CentOS VMs running in an ESXi environment.
On centos01 192.168.20.20
we have Rancher 1.6 up and running.
Now I want to add centos02 192.168.20.21
as a host with this command:
sudo docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock\
-v /var/lib/rancher:/var/lib/rancher rancher/agent:v1.2.10\
http://192.168.20.20:8080/v1/scripts/CC2CF0AC9A34321C63FC:1514678400000:uZJHQdGE51f6w7N5J7Zr78AYzg
After doing that, in the hosts overview host centos01
shows its docker0 IP 172.17.01
whereas centos02
shows its ens192 IP 192.168.20.21
. I suppose they should be in the same range, shouldn’t they?
I can also see host centos02
never being healthy for all its containers – as far as I can tell they cannot communicate.
Could somebody point me in the right direction here?