Skip to main content
MAINTAINER instruction is deprecated in favor of using label.
PropertyValue
SeverityWarning
CategoryBest Practice
DefaultEnabled
Auto-fixYes (--fix)

Description

The MAINTAINER instruction, used historically for specifying the author of the Dockerfile, is deprecated. To set author metadata for an image, use the org.opencontainers.image.authors OCI label instead.

Examples

Bad:
MAINTAINER moby@example.com
Good:
LABEL org.opencontainers.image.authors="moby@example.com"

Auto-fix

The fix replaces MAINTAINER with an equivalent org.opencontainers.image.authors label.
# Before
MAINTAINER John Doe <john@example.com>

# After (with --fix)
LABEL org.opencontainers.image.authors="John Doe <john@example.com>"

Supersedes

Reference