I have a debian8 host with rancher on it and then 3 debian8 docker containers as hosts. I had them all turned off and just turned them all back on and while No3 has come up fine saying “active” under hosts 1 and 2 say “disconnected”, how do I fix this please?
Are you trying to use docker containers as rancher hosts? I do not think that is a supported configuration. I believe that the rancher hosts need to be either separate physical machines, or at least separate virtual machines.
Rancher itself seems to work fine on the vm host, that isnt the issue the problems are communications to the 3 hosts that will do the work.
Meantime I’ve Switched from Debian8 to ubuntu 16 LTS and an external mysql database to see if that makes any difference. I will re-do the 3 hosts as ubuntu 16 LTS as well.
Those refer to using a single host/vm to handle both the Rancher server and a single rancher agent. I do not believe that you can run multiple rancher hosts as containers.
What I would suggest is making 3 or 4 VMs running the rancher services:
VM1: rancher/server (optionally also run rancher/agent on this VM, but not recommended)
VM2: rancher/agent
VM3: rancher/agent
VM4: rancher/agent
Each VM should be a separate ESX/Virtualbox/Qemu VM and not a Docker container.