diff --git a/frontend/dockerfile/docs/reference.md b/frontend/dockerfile/docs/reference.md index b341c4e97a62..de397f7956ba 100644 --- a/frontend/dockerfile/docs/reference.md +++ b/frontend/dockerfile/docs/reference.md @@ -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: