docker 下 安装rancher 笔记
2016-03-16 15:47 freefei 阅读(2130) 评论(0) 编辑 收藏 举报sudo yum update 更新系统环境
curl -sSL https://get.docker.com/ | sh 安装最新docker版本
systemctl start docker.service 启动DOCKER
systemctl enable docker.service 开机自启动DOCKER
docker version 查看docker版本
docker info 查看DOCKER信息
sudo service docker status 查看DOCKER状态
docker exec -it 40c330755e61 /bin/bash
安装rancher
docker pull rancher/server:v0.61.0-rc3
docker pull rancher/agent:v0.10.0
docker pull rancher/agent-instance:v0.8.0
docker pull centos:7.2.1511
yum -y update && yum -y upgrade
yum clean all
docker run -d --restart=always -v /data/rancher_server:/var/lib/mysql -p 8080:8080 rancher/server