1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api/client
Aaron Lehmann 57ae29aa74 Add failure action for rolling updates
This changes the default behavior so that rolling updates will not
proceed once an updated task fails to start, or stops running during the
update. Users can use docker service inspect --pretty servicename to see
the update status, and if it pauses due to a failure, it will explain
that the update is paused, and show the task ID that caused it to pause.
It also shows the time since the update started.

A new --update-on-failure=(pause|continue) flag selects the
behavior. Pause means the update stops once a task fails, continue means
the old behavior of continuing the update anyway.

In the future this will be extended with additional behaviors like
automatic rollback, and flags controlling parameters like how many tasks
need to fail for the update to stop proceeding. This is a minimal
solution for 1.12.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2016-07-25 08:51:19 -07:00
..
bundlefile Add some tests for bundlefile and improve the error messages for LoadFile 2016-06-16 18:18:25 -04:00
container fix typo creats into creates in comments 2016-07-16 17:55:18 +08:00
formatter Do not show empty tags for digest references in output 2016-06-14 22:44:49 -07:00
idresolver Update to new swarmkit/engine-api 2016-06-30 17:22:47 -07:00
image Merge pull request #24389 from Microsoft/jjh/silentsecurity 2016-07-08 11:06:33 -07:00
inspect remove fallback for Go 1.4 2016-06-07 22:38:02 +02:00
network Don't automagically add "[OPTIONS]" to usage 2016-07-19 00:07:19 +02:00
node Replace secrets with join tokens 2016-07-21 15:23:03 -07:00
plugin Merge pull request #24722 from thaJeztah/update-usage-for-deprecated-flags 2016-07-19 11:01:33 -04:00
registry fix stdout and stderr in api client 2016-07-05 23:07:40 +08:00
service Add failure action for rolling updates 2016-07-25 08:51:19 -07:00
stack Append --registry-auth with with 2016-07-22 10:38:56 +02:00
swarm Require listen address and advertise address to be an IP address or an interface name 2016-07-24 09:23:38 -07:00
system Split advertised address from listen address 2016-07-24 09:23:07 -07:00
task Improve timestamp formatting 2016-07-01 17:55:52 -07:00
volume Dont run man generation as part of test-unit. 2016-07-19 12:00:35 -04:00
cli.go Windows: Always enable VT emulation 2016-06-23 13:14:39 -07:00
client.go
commands.go Use spf13/cobra for docker update 2016-06-22 11:06:44 -07:00
credentials.go Migrate login & logout command to cobra 2016-06-10 12:04:29 +02:00
exec.go Don't automagically add "[OPTIONS]" to usage 2016-07-19 00:07:19 +02:00
exec_test.go Update client code with api changes 2016-04-15 12:48:01 +02:00
hijack.go Fix logrus formatting 2016-06-11 13:16:55 -07:00
inspect.go Don't automagically add "[OPTIONS]" to usage 2016-07-19 00:07:19 +02:00
registry.go Merge pull request #23584 from nishanttotla/private-images-swarm-services 2016-06-30 17:18:59 -07:00
trust.go api,daemon: cleanup some unused stuff 2016-06-21 14:15:19 -07:00
trust_test.go
utils.go fix some typos 2016-06-21 15:29:25 +08:00