Skip to content

no-maintainer

Dockerfilecleanupno fixdefault: warndockerfile/hadolint

Reports a MAINTAINER instruction.

MAINTAINER has been deprecated since Docker 1.13 and may be removed. Its replacement, a label such as LABEL org.opencontainers.image.authors="Name <name@example.com>", carries the same information under a standard key that registries and tools read.

Reported
...
ONBUILD CMD echo hi
...
MAINTAINER a@b.c
...
COPY a b /dest/
...
dockerfile:
lint:
rules:
no-maintainer: warn # off, warn (default), error

Enabled by the presets: dockerfile/hadolint.

Suppress one line with sudsy-disable-next-line no-maintainer in a comment of the file’s language.

The same check in other tools; Sudsy reports what each upstream rule reports.

Tool Rule Match
hadolint DL4000 full