Dockerfile Linter
Check a Dockerfile against best practices: pinned images, apt and pip flags, USER, secrets and more. Each finding has a fix. Private.
Dockerfile
Stays in your browserFindings
Shortcuts: Ctrl+Enter run · Ctrl+Shift+C copy result · / search (use ⌘ on Mac)
Free Online Dockerfile Linter
Paste a Dockerfile and see what could be better: images without a fixed version, packages that bloat the image, secrets written in the file, and containers that run as root. Safe fixes can be applied in one click. It gives developers a quick browser-based way to solve a focused dockerfile linter task before moving the result into a project.
How to use the dockerfile linter
Paste your file in the box, or open it, and press Check. Each finding shows the line, how serious it is and how to fix it. Press "Apply safe fixes" to get a corrected Dockerfile for the simple ones.
Common mistakes
- Putting a password or token in ENV or ARG: it stays readable in the image history.
- Installing packages without cleaning the package lists, which makes every layer larger.