其他分享
首页 > 其他分享> > docker-compose安装rancher-arm版

docker-compose安装rancher-arm版

作者:互联网

创建目录

cd /usr/local/docker/
mkdir rancher && cd rancher/

 

docker-compose.yaml文件

cat > docker-compose.yaml << EOF
version: '3'
services:
  rancher:
    image: 'rancher/rancher:v2.4.4'
    privileged: true
    restart: always
    container_name: rancher
    volumes:
      - ./data:/var/lib/rancher
      - /etc/resolved.conf:/etc/resolved.conf
    network_mode: host
    environment:
      - TZ=Asia/Shanghai
EOF

查看Rancher启动日志

docker logs -f rancher

登陆访问

https://ip
首次登陆直接调转至设置设置密码界面 账户为admin

rancher上创建集群(接入K8S集群)

 

 

标签:compose,cd,yaml,集群,rancher,docker
来源: https://www.cnblogs.com/cgy-home/p/16512508.html