1. 拉取镜像 v2.4.2 rancher2: image: rancher/rancher:stable container_name: rancher2 restart: unless-stopped privileged: true ports: - "8447:80" - "8448:443" environment: - JAVA_OPTS=-Xmx1024m