Преглед на файлове

Merge pull request #24960 from aaronlehmann/update-parallelism-docs

Update --update-parallelism docs
Sebastiaan van Stijn преди 9 години
родител
ревизия
8e8580c680
променени са 3 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 1 1
      docs/reference/commandline/service_create.md
  2. 1 1
      docs/reference/commandline/service_update.md
  3. 1 1
      docs/swarm/swarm-tutorial/drain-node.md

+ 1 - 1
docs/reference/commandline/service_create.md

@@ -40,7 +40,7 @@ Options:
       --restart-window value         Window used to evaluate the restart policy (default none)
       --stop-grace-period value      Time to wait before force killing a container (default none)
       --update-delay duration        Delay between updates
-      --update-parallelism uint      Maximum number of tasks updated simultaneously
+      --update-parallelism uint      Maximum number of tasks updated simultaneously (0 to update all at once) (default 1)
   -u, --user string                  Username or UID
       --with-registry-auth           Send registry authentication details to Swarm agents
   -w, --workdir string               Working directory inside the container

+ 1 - 1
docs/reference/commandline/service_update.md

@@ -47,7 +47,7 @@ Options:
       --restart-window value         Window used to evaluate the restart policy (default none)
       --stop-grace-period value      Time to wait before force killing a container (default none)
       --update-delay duration        Delay between updates
-      --update-parallelism uint      Maximum number of tasks updated simultaneously
+      --update-parallelism uint      Maximum number of tasks updated simultaneously (0 to update all at once) (default 1)
   -u, --user string                  Username or UID
       --with-registry-auth           Send registry authentication details to Swarm agents
   -w, --workdir string               Working directory inside the container

+ 1 - 1
docs/swarm/swarm-tutorial/drain-node.md

@@ -41,7 +41,7 @@ run your manager node. For example, the tutorial uses a machine named
 update](rolling-update.md) tutorial, start it now:
 
     ```bash
-    $ docker service create --replicas 3 --name redis --update-delay 10s --update-parallelism 1 redis:3.0.6
+    $ docker service create --replicas 3 --name redis --update-delay 10s redis:3.0.6
 
     c5uo6kdmzpon37mgj9mwglcfw
     ```