I am new to Rancher. I had it working great on a Virtualbox machine running Ubuntu 14.04 with Docker. I accidently filled the harddrive and the virtual machnie stopped working. So I started over with a new virutal machine with Ubuntu 14.04 and Docker.
I ran:
sudo docker run -d --restart=unless-stopped -p 8080:8080 rancher/server
and Rancher works fine at this address: http://127.0.0.1:8080
When I try to run the agent command, it does not work, and I cannot add a host.
than the command that shows up in Rancher. The Rancher command puts quotes around the ip address and also does uses the ip 127.0.0.1:8080 in the second location of the command.
Anty help you can give for me to get the agent running and to add a host would be much appreciated
I think you need to pass the environment variable CATTLE_AGENT_IP to your rancher agent container in this case. The IP needs to be your machine’s IP, not the docker bridge or anything like that.
I finally got my original VM to run and Rancher works fine. It is version 1.1.3 and it is running on eth0 IP which is 10.0.2.15
on my new VM I am running Rancher Server Version 1.1.4
When I run this command:
docker run -d --restart=always -p 8080:8080 rancher/server
It runs on lo IP address by default whcih is 127.0.0.1
How do I run rancher server on my eth0 IP instead of lo ip?