docker部署rancher

yudiewenyuan 2020-05-01

docker容器加入开机启动

1.> docker update --restart=always containers/ID

安装rancher-server:

1.> docker pull rancher/server:latest

2.> docker run -d --restart=unless-stopped -p 8080:8080 rancher/server

安装rancher/rancher:     # k8s管理平台

1.> docker pull rancher/rancher

2.> docker run -d --restart=unless-stopped -p 80:80 -p 443:443 -v /docker_volume/rancher_home/rancher:/var/lib/rancher -v /docker_volume/rancher_home/auditlog:/var/log/auditlog --name rancher rancher/rancher

访问ip:端口号

1.> rancher-server:

ip:8080

2.> rancher:

ip:80

相关推荐