Closed AJNOURI closed 6 years ago
Using host name: (/etc/hosts on both rancher and rancheros node are properly configurd to resolve rancheros1 )
[docker@rancheros1 ~]$ sudo docker run -e CATTLE_AGENT_IP="rancheros1" -e CATTLE_HOST_LABELS='typelabel=node&rolelabel=test' --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v1.2.9 http://ajnouri.info:8080/v1/scripts/DE0B5699DFFA63EE9734:1514678400000:5SVXq7ImsOJkT9NugiquuC7kimU ERROR: Invalid CATTLE_AGENT_IP (rancheros1)
Using host IP:
[docker@rancheros1 ~]$ sudo docker run -e CATTLE_AGENT_IP="192.168.99.100" -e CATTLE_HOST_LABELS='typelabel=node&rolelabel=test' --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v1.2.9 http://ajnouri.info:8080/v1/scripts/DE0B5699DFFA63EE9734:1514678400000:5SVXq7ImsOJkT9NugiquuC7kimU INFO: Running Agent Registration Process, CATTLE_URL=http://ajnouri.info:8080/v1 INFO: Attempting to connect to: http://ajnouri.info:8080/v1 INFO: http://ajnouri.info:8080/v1 is accessible INFO: Inspecting host capabilities INFO: Boot2Docker: false INFO: Host writable: true INFO: Token: xxxxxxxx INFO: Running registration INFO: Printing Environment INFO: ENV: CATTLE_ACCESS_KEY=C4900994E8A2EBB705BA INFO: ENV: CATTLE_AGENT_IP=192.168.99.100 INFO: ENV: CATTLE_HOME=/var/lib/cattle INFO: ENV: CATTLE_HOST_LABELS=typelabel=node&rolelabel=test INFO: ENV: CATTLE_REGISTRATION_ACCESS_KEY=registrationToken INFO: ENV: CATTLE_REGISTRATION_SECRET_KEY=xxxxxxx INFO: ENV: CATTLE_SECRET_KEY=xxxxxxx INFO: ENV: CATTLE_URL=http://ajnouri.info:8080/v1 INFO: ENV: DETECTED_CATTLE_AGENT_IP=192.168.0.254 INFO: ENV: RANCHER_AGENT_IMAGE=rancher/agent:v1.2.9 INFO: Deleting container rancher-agent INFO: Launched Rancher Agent: c1723a28c8ea593815f5e87eec83ad24113c09292699f39532a5295bf324e67e [docker@rancheros1 ~]$
Using host name: (/etc/hosts on both rancher and rancheros node are properly configurd to resolve rancheros1 )
Using host IP: