MaintainerDeprecated

Table of contents

Output

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

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

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