mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
c9fdf9abf8
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> |
||
---|---|---|
.. | ||
convert | ||
executor | ||
provider | ||
cluster.go | ||
filters.go | ||
helpers.go | ||
listen_addr.go | ||
listen_addr_linux.go | ||
listen_addr_others.go |