Skip to content

Commit

Permalink
Merge pull request #5404 from tonistiigi/docs-check-errors
Browse files Browse the repository at this point in the history
docs: add note about check with errors
  • Loading branch information
crazy-max authored Oct 8, 2024
2 parents 8c313f9 + 885b1a5 commit 01c1436
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/dockerfile/docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,11 @@ despite warnings. To make the build fail on warnings, set `#check=error=true`.
# check=error=true
```

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

Expand Down

0 comments on commit 01c1436

Please sign in to comment.