Skip to content

Commit

Permalink
doc: fix, docker uses Label(), not Tag()
Browse files Browse the repository at this point in the history
  • Loading branch information
mpl committed Mar 7, 2022
1 parent b3de9a0 commit a1e766e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/content/providers/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -550,11 +550,11 @@ providers:

_Optional, Default=""_

The `constraints` option can be set to an expression that Traefik matches against the container tags 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
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 labels match the expression, no route for that container is
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.

??? example "Constraints Expression Examples"
Expand Down

0 comments on commit a1e766e

Please sign in to comment.