Many new validation rules have been added to verify that your Dockerfile is using best practices. These rules are validated during build and new "lint" subrequest can be used to only trigger validation without completing the whole build.
New directive #check and build-arg BUILDKIT_DOCKERFILE_CHECK can be set to control the behavior or best practices validation checks
In the first case, it is not clear what "lint" is a subrequest of. buildctl? docker? Something else?
In the second case, it is not clear how specifically to use these directives, or where the checks that get applied are documented.
I did finally stumble across this. If that's the documentation for this feature, it should be clearly linked from the release notes and the main README file.
The dockerfile/1.8.0 release notes mention two things:
In the first case, it is not clear what "lint" is a subrequest of.
buildctl
?docker
? Something else?In the second case, it is not clear how specifically to use these directives, or where the checks that get applied are documented.
I did finally stumble across this. If that's the documentation for this feature, it should be clearly linked from the release notes and the main README file.