DockerCLI/command
Aaron Lehmann dfed71a6dd Add force option to service update
Currently, there's no way to restart the tasks of a service without
making an actual change to the service. This leads to us giving awkward
workarounds as in
https://github.com/docker/docker.github.io/pull/178/files, where we tell
people to scale a service up and down to restore balance, or make
unnecessary changes to trigger a restart.

This change adds a --force option to "docker service update", which
forces the service to be updated even if no changes require that.

Since rolling update parameters are respected, the user can use
"docker service --force" to do a rolling restart. For example, the
following is supported:

   docker service update --force --update-parallelism 2 \
   --update-delay 5s myservice

Since the default value of --update-parallelism is 1, the default
behavior is to restart the service one task at a time.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-10-21 17:43:27 -07:00
..
bundlefile Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
checkpoint Make all the experimental subcommand consistent. 2016-09-19 16:27:23 -04:00
commands Merge pull request #26716 from dnephin/move-system-commands 2016-09-20 15:54:01 +02:00
container Merge pull request #27564 from mlaventure/add-networks-format-to-ps 2016-10-20 18:43:46 -07:00
formatter Add Networks placeholder to ps --format 2016-10-20 07:41:56 -07:00
idresolver Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
image Fix typs from go to Go 2016-10-18 19:40:16 +08:00
inspect add endpoint mode in service pretty 2016-09-27 18:41:19 +08:00
network Fix typs from go to Go 2016-10-18 19:40:16 +08:00
node make every node and plugin removal call api 2016-10-19 06:40:30 +08:00
plugin make every node and plugin removal call api 2016-10-19 06:40:30 +08:00
prune better prune and system df 2016-10-11 00:42:21 +08:00
registry Move the search command to the registry package. 2016-09-19 13:28:15 -04:00
service Add force option to service update 2016-10-21 17:43:27 -07:00
stack Allow `docker deploy` command accept filename with/without extension 2016-10-14 11:44:15 -07:00
swarm change join node role judge 2016-10-19 19:47:42 +08:00
system Fix typs from go to Go 2016-10-18 19:40:16 +08:00
task Fix partial/full filter issue in `service tasks --filter` 2016-09-26 16:01:20 -07:00
volume Fix typs from go to Go 2016-10-18 19:40:16 +08:00
cli.go Remove RetrieveAuthConfigs 2016-09-09 15:50:01 -04:00
events_utils.go Add subcommand prune to the container, volume, image and system commands 2016-09-29 07:42:53 -07:00
in.go Fix the incorrect description for NewInStream 2016-10-13 22:33:09 +08:00
out.go Windows: OCI process struct convergence 2016-09-19 10:34:31 -07:00
registry.go Remove remaining registry methods from DockerCLI. 2016-09-09 15:50:01 -04:00
trust.go Move image trust related cli methods into the image package. 2016-09-09 10:50:16 -04:00
utils.go return nil when no node or service to avoid additional api call 2016-10-11 10:59:16 +08:00