与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)
我认为不可能,但是也许有办法