指定与docker-compose相同的rancher-compose.yml文件

时间:2019-06-19 09:09:32

标签: docker docker-compose dockerfile rancher

rancher-compose.yml一样,可以为rancher-compose up命令指定docker-compose -f custom.yml文件

$ rancher-compose up --help
Usage: rancher-compose up [OPTIONS]

Bring all services up

Options:
   --pull, -p                         Before doing the upgrade do an image pull on all hosts that have the image already
   -d                                 Do not block and log
   --upgrade, -u, --recreate          Upgrade if service has changed
   --force-upgrade, --force-recreate  Upgrade regardless if service has changed
   --confirm-upgrade, -c              Confirm that the upgrade was success and delete old containers
   --rollback, -r                     Rollback to the previous deployed version
   --batch-size value                 Number of containers to upgrade at once (default: 2)
   --interval value                   Update interval in milliseconds (default: 1000)

我认为不可能,但是也许有办法

1 个答案:

答案 0 :(得分:1)

rancher-compose -f选项可用。

检出this

在较旧的1.x版本的rancher中,我什至看到了available

注意:我猜-f选项不是用于rancher-compose up的,而是仅用于rancher-compose命令的。但是最终结果与允许使用其他组成文件相同。