Skip to content
GunSik2 edited this page Nov 5, 2015 · 8 revisions

Amazon Linux Image Docker

sudo yum update -y
sudo yum install -y docker
sudo service docker start
sudo usermod -a -G docker ec2-user

Rancher Server

docker run -d --restart=always -p 8080:8080 rancher/server

Rancher agent /w Rancher server

  • go to Infrastructure > Hosts, and click Add Host.
sudo docker run -d --privileged -v /var/run/docker.sock:/var/run/docker.sock rancher/agent:v0.8.2 http://<rancher_ip>:8080/v1/scripts/hashkey

Rancher agent on other VM

sudo docker run -e CATTLE_AGENT_IP=<host_ip> -d --privileged -v /var/run/docker.sock:/var/run/docker.sock rancher/agent:v0.8.2 http://<rancher_ip>:8080/v1/scripts/hashkey

Clone this wiki locally