Document order option in update_config (#5089)

This commit is contained in:
Dave Henderson 2017-10-24 19:30:03 -04:00 committed by Misty Stanley-Jones
parent a9314c7ec7
commit a38c5a6f9f
2 changed files with 7 additions and 1 deletions

View File

@ -264,6 +264,7 @@ Introduces the following additional parameters:
- `order` for [update configurations](index.md#update_config) - `order` for [update configurations](index.md#update_config)
- `name` for [volumes](index.md#volume-configuration-reference) - `name` for [volumes](index.md#volume-configuration-reference)
## Upgrading ## Upgrading
### Version 2.x to 3.x ### Version 2.x to 3.x

View File

@ -739,9 +739,13 @@ updates.
(default: `pause`). (default: `pause`).
- `monitor`: Duration after each task update to monitor for failure `(ns|us|ms|s|m|h)` (default 0s). - `monitor`: Duration after each task update to monitor for failure `(ns|us|ms|s|m|h)` (default 0s).
- `max_failure_ratio`: Failure rate to tolerate during an update. - `max_failure_ratio`: Failure rate to tolerate during an update.
- `order`: Order of operations during updates. One of `stop-first` (old task is stopped before starting new one), or `start-first` (new task is started first, and the running tasks will briefly overlap) (default `stop-first`) **Note**: Only supported for v3.4 and higher.
> **Note**: `order` is only supported for v3.4 and higher of the compose
file format.
```none ```none
version: '3' version: '3.4'
services: services:
vote: vote:
image: dockersamples/examplevotingapp_vote:before image: dockersamples/examplevotingapp_vote:before
@ -752,6 +756,7 @@ services:
update_config: update_config:
parallelism: 2 parallelism: 2
delay: 10s delay: 10s
order: stop-first
``` ```
#### Not supported for `docker stack deploy` #### Not supported for `docker stack deploy`