Skip to content
Developer & CodeLocal · Stays on device

Dockerfile Linter

Check a Dockerfile for common mistakes and best-practice issues, with the reason for each finding.

  • Dockerfile
  • Free to use
  • No sign-up or watermark
dockerfile-linterOn this device
1
2
3
4
5
6
7
8
9
10
1
2
3
4
5
6
7
8
9
10

About this tool

Paste a Dockerfile to get errors, warnings and tips from our own rule set, each with a short explanation of why it matters. It catches unknown instructions, missing or unpinned base image tags, containers that run as root, secrets baked into ENV or ARG, apt-get update without install in the same layer, installs that will hang without -y, piping downloaded scripts into a shell, ADD where COPY is clearer, shell-form CMD that won’t receive stop signals, relative WORKDIRs, invalid EXPOSE ports, cache-busting COPY order and more.

Line continuations, comments and parser directives are handled, and multi-stage builds are understood (each FROM starts a new stage). The checks are static: the image isn’t built and packages aren’t looked up. Everything runs in your browser. What you paste is never uploaded, logged or stored.

  1. Input

    Your code or text

    Dockerfile

  2. Processing

    Processed in this browser

    Instant, in-browser. Nothing is uploaded.

  3. Output

    Your result

    Ready to download or copy

Local processing pipelineInstant, in-browser

How to use it

  1. 1

    Paste your Dockerfile (or try the sample).

  2. 2

    Work through errors first, then warnings and tips.

  3. 3

    Download the report if you want to share it.

Zero-upload architecture

How to use Dockerfile Linter for free, with no upload

Free, with no sign-up or watermark · Your files stay on your device

  1. 1

    Open Dockerfile Linter

    Launch the app and add your file. There is nothing to install and no account to create.

  2. 2

    Work through it

    Work through errors first, then warnings and tips.

  3. 3

    Get your result

    Download the report if you want to share it.

  • Local

    Docker Compose Validator

    Validate a docker-compose / compose.yaml file for YAML errors, unknown keys, broken references, port clashes and risky settings.

    Open tool
  • Local

    Kubernetes YAML Validator

    Check Kubernetes manifests for YAML errors, missing fields, invalid names and labels, removed API versions and common workload mistakes.

    Open tool
  • Local

    Environment Variable Editor

    Open, edit, sort and clean up .env files, spot secrets and duplicates, and export to JSON, shell, YAML or a .env.example.

    Open tool
  • Local

    JSON Validator

    Check whether JSON is valid and see exactly where and why it fails, with fix suggestions.

    Open tool