Documentation: clarify array value quoting in Docker label mapping syntax (#6356)

Co-authored-by: shamoon <shamoon@users.noreply.github.com>
This commit is contained in:
Erkan
2026-02-24 01:16:22 +03:00
committed by GitHub
parent 614a87d768
commit 1645c1b8a1

View File

@@ -177,6 +177,16 @@ labels:
- homepage.widget.fields=["field1","field2"] # optional
```
!!! note
If you use mapping syntax (`:`) for labels instead of list syntax (`-`), array values like `fields` must be wrapped in single quotes so they are passed as a string:
```yaml
labels:
...
homepage.widget.fields: '["field1","field2"]'
```
Multiple widgets can be specified by incrementing the index, e.g.
```yaml