docker rancher 安装
作者:互联网
1.rancher 中文文档
https://rancher.com/docs/rancher/v1.6/zh/
2.从阿里云拉取镜像
docker pull registry.cn-hangzhou.aliyuncs.com/ranchers/server:v1.6.5
3.创建docker-compose.yml 创建应用
version: '2' services: mysql: image: mysql:5.5 environment: MYSQL_ROOT_PASSWORD: 123456 volumes: - /var/own/mysqldata:/var/lib/mysql ports: - 3306:3306 labels: io.rancher.scheduler.affinity:host_label: hc-dev=node-01
标签:mysql,var,3306,v1.6,rancher,docker,安装 来源: https://www.cnblogs.com/hcfan/p/10628442.html