Skip to content

Commit 885b1a5

Browse files
committed
docs: add note about check with errors
Signed-off-by: Tonis Tiigi <[email protected]>
1 parent 8c313f9 commit 885b1a5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

frontend/dockerfile/docs/reference.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,11 @@ despite warnings. To make the build fail on warnings, set `#check=error=true`.
345345
# check=error=true
346346
```
347347

348+
> [!NOTE]
349+
> When using the `check` directive, with `error=true` option, it is recommended
350+
> to pin the [Dockerfile syntax]((#syntax)) to a specific version. Otherwise, your build may
351+
> start to fail when new checks are added in the future versions.
352+
348353
To combine both the `skip` and `error` options, use a semi-colon to separate
349354
them:
350355

0 commit comments

Comments
 (0)