mirror of https://github.com/docker/docs.git
commit
93f15a5b6b
|
@ -565,7 +565,7 @@ services, you specify the number of replica tasks for the swarm manager to
|
|||
schedule onto available nodes. For global services, the scheduler places one
|
||||
task on each available node that meets the service's
|
||||
[placement constraints](#placement-constraints) and
|
||||
[resource requirements](#reserve-cpu-or-memory-for-a-service).
|
||||
[resource requirements](#reserve-memory-or-cpus-for-a-service).
|
||||
|
||||
You control the type of service using the `--mode` flag. If you don't specify a
|
||||
mode, the service defaults to `replicated`. For replicated services, you specify
|
||||
|
@ -628,7 +628,7 @@ operator (`==` or `!=`). For replicated services, it is possible that all
|
|||
services run on the same node, or each node only runs one replica, or that some
|
||||
nodes don't run any replicas. For global services, the service runs on every
|
||||
node that meets the placement constraint and any [resource
|
||||
requirements](#reserve-cpu-or-memory-for-a-service).
|
||||
requirements](#reserve-memory-or-cpus-for-a-service).
|
||||
|
||||
```bash
|
||||
$ docker service create \
|
||||
|
|
Loading…
Reference in New Issue