Rancher安装

时间:2021-08-23 08:42:12   收藏:0   阅读:13

1.防火墙设置

firewall-cmd --add-port 80/tcp --permanent
firewall-cmd --add-port 443/tcp --permanent
firewall-cmd --reload
  1. 安装Docker
yum install docker -y
service docker start
  1. 安装Rancker
docker pull rancher/rancher:stable
hostnamectl set-hostname rancher
mkdir -p /home/rancher/rancher
mkdir -p /home/rancher/auditlog
docker run -d --privileged --restart=unless-stopped -p 80:80 -p 443:443 -v /home/rancher/rancher:/var/lib/rancher -v /home/rancher/auditlog:/var/log/auditlog --name rancher rancher/rancher:stable

原文:https://www.cnblogs.com/JaxYoun/p/15174292.html

评论(0)
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!