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:
parent
614a87d768
commit
1645c1b8a1
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue