Browse code

Update --update-parallelism docs

Update documentation to account for the changes in #24952.

docs/swarm/swarm-tutorial/rolling-update.md doesn't need any changes,
but the CLI reference pages should show the current help text.
drain-node.md no longer needs to specify --update-parallelism 1 in its
example.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
(cherry picked from commit 933ba8d7f7f95ad0bac97c39ffb3cdf1a5634cc6)
Signed-off-by: Tibor Vass <tibor@docker.com>

Aaron Lehmann authored on 2016/07/23 11:07:10
Showing 3 changed files
... ...
@@ -42,7 +42,7 @@ Options:
42 42
       --restart-window value         Window used to evaluate the restart policy (default none)
43 43
       --stop-grace-period value      Time to wait before force killing a container (default none)
44 44
       --update-delay duration        Delay between updates
45
-      --update-parallelism uint      Maximum number of tasks updated simultaneously
45
+      --update-parallelism uint      Maximum number of tasks updated simultaneously (0 to update all at once) (default 1)
46 46
   -u, --user string                  Username or UID
47 47
       --with-registry-auth           Send registry authentication details to Swarm agents
48 48
   -w, --workdir string               Working directory inside the container
... ...
@@ -48,7 +48,7 @@ Options:
48 48
       --restart-window value         Window used to evaluate the restart policy (default none)
49 49
       --stop-grace-period value      Time to wait before force killing a container (default none)
50 50
       --update-delay duration        Delay between updates
51
-      --update-parallelism uint      Maximum number of tasks updated simultaneously
51
+      --update-parallelism uint      Maximum number of tasks updated simultaneously (0 to update all at once) (default 1)
52 52
   -u, --user string                  Username or UID
53 53
       --with-registry-auth           Send registry authentication details to Swarm agents
54 54
   -w, --workdir string               Working directory inside the container
... ...
@@ -41,7 +41,7 @@ run your manager node. For example, the tutorial uses a machine named
41 41
 update](rolling-update.md) tutorial, start it now:
42 42
 
43 43
     ```bash
44
-    $ docker service create --replicas 3 --name redis --update-delay 10s --update-parallelism 1 redis:3.0.6
44
+    $ docker service create --replicas 3 --name redis --update-delay 10s redis:3.0.6
45 45
 
46 46
     c5uo6kdmzpon37mgj9mwglcfw
47 47
     ```