Rancher: EC2 hosts not shown in Rancher UI -


i used docker-machine create rancher setup running on virtualbox. added 2 hosts, on virtualbox. now, i'm trying add ec2 host setup (this experiment rancher).

i have seen this tutorial, wanted use docker-machine instead.

to extend, have done following:

 mac-osx:~ wauterw$ docker-machine create -d amazonec2 --amazonec2-vpc-id vpc-84fd6de0 --amazonec2-region eu-west-1 --amazonec2-ami ami-c5f1beb6 --amazonec2-ssh-user rancher rancher-node-aws-01 running pre-create checks... creating machine... (rancher-node-aws-01) launching instance... waiting machine running, may take few minutes... detecting operating system of created instance... waiting ssh available... detecting provisioner... provisioning rancheros... copying certs local machine directory... copying certs remote machine... setting docker configuration on remote daemon... checking connection docker... docker , running! see how connect docker client docker engine running on virtual machine, run: docker-machine env rancher-node-aws-01 

note: ami id corresponds rancheros-v0.7.0-hvm-1.

i ssh ec2 host , execute following command (generated in custom method of rancher)

mac-osx:~ wauterw$ docker-machine ssh rancher-node-aws-01 [rancher@rancher-node-aws-01 ~]$ [rancher@rancher-node-aws-01 ~]$ [rancher@rancher-node-aws-01 ~]$ [rancher@rancher-node-aws-01 ~]$ sudo docker run -e cattle_host_labels='name=rancher-aws-node-01'  -d --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v1.0.2 http://192.168.99.100:8080/v1/scripts/bf48c4313c4967a7a57f:1478602800000:iafywoj0bpbem1uxxflnrgdf2o unable find image 'rancher/agent:v1.0.2' locally v1.0.2: pulling rancher/agent  5a132a7e7af1: pull complete fd2731e4c50c: pull complete 28a2f68d1120: pull complete a3ed95caeb02: pull complete 7fa4fac65171: pull complete 33de63de5fdb: pull complete d00b3b942272: pull complete digest: sha256:b0b532d1e891534779d0eb1a01a5717ebfff9ac024db4412ead87d834ba92544 status: downloaded newer image rancher/agent:v1.0.2 7d419ead09365347e827bee24519547c9507fb36ecac794ea6d4bcb312abeb55 [rancher@rancher-node-aws-01 ~]$ 

i expecting rancher ui show host, shows virtualbox hosts. ideas?

host agents need able connect server using registration url, have set http://192.168.99.100:8080. not going reachable vm in ec2.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - IE9 error '$'is not defined -