mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
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 ==, != ```
This commit is contained in:
@@ -98,7 +98,7 @@ For more detailed information about job options and behavior, see the [Docker CL
|
||||
deploy:
|
||||
placement:
|
||||
constraints:
|
||||
- disktype=ssd
|
||||
- node.labels.disktype==ssd
|
||||
```
|
||||
|
||||
#### `preferences`
|
||||
|
||||
Reference in New Issue
Block a user