Rancher安装

#安装docker
yum -y install docker

#查看docker安装版本
docker -v

#设置docker开机自启
systemctl enable docker

#启动docker服务
systemctl start docker

#镜像加速
vi /etc/docker/daemon.json
{
“registry-mirrors”: [“https://docker.mirrors.ustc.edu.cn”]
}
systemctl restart docker

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

docker pull rancher/agent

#检验
docker ps

netstat -antupl | grep 8080

docker info WARNINGS!!
vi /etc/sysctl.conf
net.bridge.bridge-nf-call-ip6tables=1
net.bridge.bridge-nf-call-iptables=1
net.bridge.bridge-nf-call-arptables=1
init 6

你可能感兴趣的:(技术)