RancherOS安装配置

1.安装RancherOS

使用iso文件在virtual box中安装

2.安装ROS到磁盘

在个人的物理机中执行
ssh-keygen -t rsa
将生成的id_rsa.pub写到cloud_config.yml文件中

#cloud-config ssh_authorized_keys :
  - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDnBTYc3NTQSof8FqCsunNiLm86BQpBgy1Cs6KjXJcIy3ZU7SLojT/UkKLmvH+faUDgfY4QCUrfCVlTrPO4voj68Rfqjau1EyN//+ELFihlKVQSFZ+ajGDkPs8CKg+jLyEgbBaBbvDgqlH6u7sEwLw5Xy5KPB/ekNDzfkgno4L0jZr6vC2jCzx4UCdbmzFwzvPCv9Z0nzm42yAnHsW+0dFBYv3xXY/wMRagi0oL7tPR1rP1nk+B9Y8Los9r41GJluFnl7NQ2WuXTOUrVlIjQII/gGUFKD4HgSCUEcmIwC56tGRmMYrfvUKV7/iHanM2/QvLLpcfEIPpfPUN4p4k6UVp rancher@rancher

sudo ros install -c cloud-config.yml -d /dev/sda

3.启动rancher server

灵雀云
docker run -d --restart=always -p 8080:8080 index.alauda.cn/cloudsoar/rancher-server



4.创建Access Control

可以使用Github、local等

5.添加hosts

sudo docker run -d --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v0.9.2 http://172.30.124.10:8080/v1/scripts/51E484EA63CE41970E6E:1456797600000:gd2b2pUNPXR8ulpL1CR3qnRFA

参照: http://docs.rancher.com/os/running-rancheros/server/install-to-disk/

你可能感兴趣的:(docker,rancher)