From ab47fa4ee747eae46544bc80e58564eda909cd92 Mon Sep 17 00:00:00 2001 From: Antoine C Date: Thu, 27 Nov 2025 10:45:27 +0100 Subject: [PATCH] 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 ==, != ``` --- content/reference/compose-file/deploy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/reference/compose-file/deploy.md b/content/reference/compose-file/deploy.md index b9b7f4bbd3..03f82ca06e 100644 --- a/content/reference/compose-file/deploy.md +++ b/content/reference/compose-file/deploy.md @@ -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`