Skip to content

Commit ab47fa4

Browse files
authored
docs: use == operator in node.labels constraint (#23522)
## Description https://docs.docker.com/reference/compose-file/deploy/#placement In this section, `node.labels` must be specified. Also, it must be `==` and not a simple `=`, an error occurs without it: ```bash failed to update service myapp_redis: Error response from daemon: rpc error: code = Unknown desc = constraint expected one operator from ==, != ```
1 parent c780cb7 commit ab47fa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/reference/compose-file/deploy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ For more detailed information about job options and behavior, see the [Docker CL
9898
deploy:
9999
placement:
100100
constraints:
101-
- disktype=ssd
101+
- node.labels.disktype==ssd
102102
```
103103

104104
#### `preferences`

0 commit comments

Comments
 (0)