doc: fix, docker uses Label(), not Tag()
This commit is contained in:
parent
b3de9a040b
commit
a1e766e180
1 changed files with 3 additions and 3 deletions
|
@ -550,11 +550,11 @@ providers:
|
||||||
|
|
||||||
_Optional, Default=""_
|
_Optional, Default=""_
|
||||||
|
|
||||||
The `constraints` option can be set to an expression that Traefik matches against the container tags to determine whether
|
The `constraints` option can be set to an expression that Traefik matches against the container labels to determine whether
|
||||||
to create any route for that container. If none of the container tags match the expression, no route for that container is
|
to create any route for that container. If none of the container labels match the expression, no route for that container is
|
||||||
created. If the expression is empty, all detected containers are included.
|
created. If the expression is empty, all detected containers are included.
|
||||||
|
|
||||||
The expression syntax is based on the ```Tag(`tag`)```, and ```TagRegex(`tag`)``` functions,
|
The expression syntax is based on the `Label("key", "value")`, and `LabelRegex("key", "value")` functions,
|
||||||
as well as the usual boolean logic, as shown in examples below.
|
as well as the usual boolean logic, as shown in examples below.
|
||||||
|
|
||||||
??? example "Constraints Expression Examples"
|
??? example "Constraints Expression Examples"
|
||||||
|
|
Loading…
Reference in a new issue