docker build --check .

Category: Docker

docker build --check .

Validate a Dockerfile without building

Runs BuildKit's checker against the Dockerfile, catching syntax errors and anti-patterns without executing steps. It is shorthand for docker build --call=check. Fast feedback before slow full builds.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.