Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Add force option to service update #27596
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:
Since the default value of --update-parallelism is 1, the default behavior is to restart the service one task at a time.
Oct 20, 2016
Oct 21, 2016
@aaronlehmann can you;
This also needs an update in the Bash and Zsh completion scripts, https://github.com/docker/docker/tree/master/contrib/completion, but those can be taken care off in a separate PR if you don't want to update those.