Back to Buildkit

MaintainerDeprecated

frontend/dockerfile/docs/rules/maintainer-deprecated.md

0.29.0667 B
Original Source

Output

text
MAINTAINER instruction is deprecated in favor of using label

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.

Examples

❌ Bad: don't use the MAINTAINER instruction

dockerfile
MAINTAINER [email protected]

✅ Good: specify the author using the org.opencontainers.image.authors label

dockerfile
LABEL org.opencontainers.image.authors="[email protected]"