RancherOS是由Rancher labs出品的一个专为Docker而生的精简版Linux,
提供了一个完整的Docker运行环境。
RancherOS系统镜像下载地址:https://github.com/rancher/os
系统要求:内存必须在2GB以上。
系统镜像启动完成之后登录账号:rancher 密码:rancher
添加IP地址:
sudo ip addr add 192.168.0.250/24 dev eth0
或者
sudo ifconfig eth0 192.168.0.250 netmask 255.255.255.0
添加网关:
sudo route add default gw 192.168.0.1
修改DNS:
sudo vi /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
:wq! #保存退出
使用ssh客户端远程连接服务器
用ISO引导系统一键安装到硬盘:
wget http://xiwaer.com/onekey/rancher/cloud-config.yml
sudo ros install -c cloud-config.yml -d /dev/sda
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END