1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api/types/swarm
Aaron Lehmann c9fdf9abf8 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
..
common.go add swarm type comments and fix nits 2016-09-26 17:17:52 +08:00
container.go
network.go Added comments to PortConfig for greater clarity 2016-09-16 14:47:35 -07:00
node.go add swarm type comments and fix nits 2016-09-26 17:17:52 +08:00
service.go Service update failure thresholds and rollback 2016-10-18 10:09:50 -07:00
swarm.go Let swarmkit handle cluster defaults in swarm init if not specified 2016-09-27 04:19:38 -07:00
task.go Add force option to service update 2016-10-21 17:43:27 -07:00