用docker-composebuild立一个牧场堆栈

我正在尝试在本地计算机上启动Rancher主服务器和主机进行testing。

我已经将Rancher安装说明和“添加主机”指令转换为下面的docker-compose.yml文件:

version: '2' services: master: image: rancher/server:stable ports: - 3000:8080 node: privileged: true image: rancher/agent:v1.2.5 command: http://master:8080/v1/scripts/BB0...fU8 depends_on: - master volumes: - /var/run/docker.sock:/var/run/docker.sock - /var/lib/rancher:/var/lib/rancher 

为了启动堆栈,我使用了docker-compose up master ,等待它加载,然后docker-compose up node ,节点似乎连接正常,但是然后退出。

 $ docker-compose up node rancher_master_1 is up-to-date Starting rancher_node_1 ... Starting rancher_node_1 ... done Attaching to rancher_node_1 node_1 | node_1 | INFO: Running Agent Registration Process, CATTLE_URL=http://master:8080/v1 node_1 | INFO: Attempting to connect to: http://master:8080/v1 node_1 | INFO: http://master:8080/v1 is accessible node_1 | INFO: Inspecting host capabilities node_1 | INFO: Boot2Docker: false node_1 | INFO: Host writable: true node_1 | INFO: Token: xxxxxxxx node_1 | INFO: Running registration node_1 | INFO: Printing Environment node_1 | INFO: ENV: ... ... node_1 | INFO: Deleting container rancher-agent node_1 | INFO: Launched Rancher Agent: 8ce...87a rancher_node_1 exited with code 0 

我错过了什么?

我无法find一个官方(或其他)现成的docker组成configuration牧场堆栈。