8000 Mention Docker 19.03 and its compose file version - and add max_repli… by SvenDowideit · Pull Request #10273 · docker/docs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Mention Docker 19.03 and its compose file version - and add max_repli… #10273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions _includes/content/compose-matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ This table shows which Compose file versions support specific Docker releases.

| **Compose file format** | **Docker Engine release** |
| ------------------- | ------------------ |
| 3.8 | 19.03.0+ |
| 3.7 | 18.06.0+ |
| 3.6 | 18.02.0+ |
| 3.5 | 17.12.0+ |
Expand Down
23 changes: 23 additions & 0 deletions compose/compose-file/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,29 @@ services:
replicas: 6
```

#### max_replicas_per_node

If the service is `replicated` (which is the default), [limit the number of replicas](/engine/reference/commandline/service_create.md#specify-maximum-replicas-per-node---replicas-max-per-node)
that can run on an node at any time.

> **[Version 3.8](compose-versioning.md#version-3) and above.**

When there are more tasks requested than running nodes, an error `no suitable node (max replicas per node limit exceed)` is raised.

```yaml
version: "{{ site.compose_file_v3 }}"
services:
worker:
image: dockersamples/examplevotingapp_worker
networks:
- frontend
- backend
deploy:
mode: replicated
replicas: 6
max_replicas_per_node: 1
```

#### resources

Configures resource constraints.
Expand Down
0