mirror of https://github.com/docker/cli.git
Update reference docs for docker stack deploy
`docker stack deploy` now support multiple composefil. This updates the reference doc to take that fact into account. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
parent
a9ecf823ff
commit
4c50007496
|
@ -25,7 +25,7 @@ Aliases:
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
--bundle-file string Path to a Distributed Application Bundle file
|
--bundle-file string Path to a Distributed Application Bundle file
|
||||||
-c, --compose-file string Path to a Compose file
|
-c, --compose-file strings Path to a Compose file
|
||||||
--help Print usage
|
--help Print usage
|
||||||
--prune Prune services that are no longer referenced
|
--prune Prune services that are no longer referenced
|
||||||
--resolve-image string Query the registry to resolve image digest and supported platforms
|
--resolve-image string Query the registry to resolve image digest and supported platforms
|
||||||
|
@ -76,14 +76,12 @@ Creating service vossibility_ghollector
|
||||||
Creating service vossibility_lookupd
|
Creating service vossibility_lookupd
|
||||||
```
|
```
|
||||||
|
|
||||||
Only a single Compose file is accepted. If your configuration is split between
|
If your configuration is split between multiple Compose files, e.g. a base
|
||||||
multiple Compose files, e.g. a base configuration and environment-specific overrides,
|
configuration and environment-specific overrides, you can provide multiple
|
||||||
you can combine these by passing them to `docker-compose config` with the `-f` option
|
`--compose-file` flags.
|
||||||
and redirecting the merged output into a new file.
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker-compose -f docker-compose.yml -f docker-compose.prod.yml config > docker-stack.yml
|
$ docker stack deploy --compose-file docker-compose.yml -f docker-compose.prod.yml vossibility
|
||||||
$ docker stack deploy --compose-file docker-stack.yml vossibility
|
|
||||||
|
|
||||||
Ignoring unsupported options: links
|
Ignoring unsupported options: links
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue