Skip to content

Linter de Dockerfile

Detecta errores comunes

Revisa Dockerfiles en busca de errores comunes: etiquetas latest, cachés de apt, ejecución como root, ADD frente a COPY, secretos en ENV y más. No se sube nada.

Sin subidas
  • ! Line 1 Avoid the :latest tag for "node:latest" — builds will not be reproducible [latest]
  • ! Line 2 MAINTAINER is deprecated — use LABEL maintainer="…" [maintainer]
  • ✕ Line 3 "API_TOKEN" looks like a secret baked into the image — use build secrets (RUN --mount=type=secret) or runtime env [secret]
  • ! Line 4 Run apt-get update and install in the same RUN, or the cached update goes stale [apt-update]
  • ✕ Line 5 apt-get install needs -y in a non-interactive build [apt-y]
  • i Line 5 Add --no-install-recommends to keep the image small [apt-recommends]
  • i Line 5 Clean up with rm -rf /var/lib/apt/lists/* in the same RUN [apt-lists]
  • i Line 5 Consecutive RUN (line 4) — combine with && to reduce layers [layers]
  • i Line 6 Prefer npm ci for reproducible installs from package-lock.json [npm-ci]
  • i Line 6 Use WORKDIR instead of cd [cd]
  • i Line 6 Consecutive RUN (line 5) — combine with && to reduce layers [layers]
  • ! Line 7 Use COPY instead of ADD for local files [add]
  • ! Line 8 Use an absolute WORKDIR path (/app) [workdir]
  • ! Line 9 Piping a download into a shell is risky; also set SHELL ["/bin/bash", "-o", "pipefail", "-c"] so failures are caught [pipe-sh]
  • ✕ Line 10 Invalid port "70000" (1–65535) [port]
  • i Line 11 Use the JSON exec form for CMD (["cmd", "arg"]) so signals reach your process [exec-form]
  • ! Line 12 Multiple CMD instructions — only the last one (line 12) takes effect [multiple]
  • ! Line 12 The container runs as root — add a USER with a non-root account [root]
  • i Line 12 No HEALTHCHECK defined [healthcheck]

Linter de Dockerfile — Revisa Dockerfiles en busca de errores comunes: etiquetas latest, cachés de apt, ejecución como root, ADD frente a COPY, secretos en ENV y más. No se sube nada. Gratis en ToolWand: sin registro, sin marca de agua y funciona sin conexión.

Cómo usar Linter de Dockerfile

  1. 1Abre Linter de Dockerfile. Funciona en tu navegador, sin registro.
  2. 2Escribe o pega tus datos.
  3. 3Copia o descarga el resultado.

Acerca de Linter de Dockerfile

Linter de Dockerfile revisa Dockerfiles en busca de errores comunes, de forma similar a hadolint: imágenes base sin fijar o con latest, cachés de apt/apk/pip sin limpiar, ejecución como root, ADD en lugar de COPY, secretos en ENV y más.

Cuándo usarlo

  • Revisa un Dockerfile antes de fusionarlo.
  • Reduce el tamaño de las imágenes limpiando las cachés de paquetes.
  • Detecta problemas de seguridad como secretos en ENV o ARG.

Consejos

  • Solo lee el Dockerfile; no construye la imagen.

Preguntas

Which rules are checked?

Common best practices similar to hadolint: pinned base images, apt/apk/pip cache cleanup, ADD vs COPY, running as root, secrets in ENV/ARG, exec-form CMD, invalid ports, multiple CMDs and more.

Is my Dockerfile uploaded?

No. Linting happens entirely in your browser.

Does it build the image?

No. It reads the Dockerfile text only.

Más herramientas