clarify syntax on swarm heartbeat for create machine command

Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
This commit is contained in:
Victoria Bialas 2016-11-21 11:40:28 -08:00
parent d5df4967f9
commit fd49e78fb0
1 changed files with 3 additions and 4 deletions

View File

@ -207,8 +207,7 @@ you can use Machine to specify how the created Swarm master should be
configured. There is a `--swarm-strategy` flag, which you can use to specify
the [scheduling strategy](/swarm/scheduler/strategy.md)
which Docker Swarm should use (Machine defaults to the `spread` strategy).
There is also a general purpose `--swarm-opt` option which works similar to how
the aforementioned `--engine-opt` option does, except that it specifies options
There is also a general purpose `--swarm-opt` option which works similar to the aforementioned `--engine-opt` option, except that it specifies options
for the `swarm manage` command (used to boot a master node) instead of the base
command. You can use this to configure features that power users might be
interested in, such as configuring the heartbeat interval or Swarm's willingness
@ -228,7 +227,7 @@ $ docker-machine create -d virtualbox \
--swarm-master \
--swarm-discovery token://<token> \
--swarm-strategy binpack \
--swarm-opt heartbeat=5 \
--swarm-opt heartbeat=5s \
upbeat
```