⚠️ Site communautaire non officiel — Cette documentation est une traduction française indépendante et n'est ni affiliée ni approuvée par Docker, Inc. Consultez le site officiel sur docs.docker.com.

MaintainerDeprecated

Table des matières

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

MAINTAINER moby@example.com

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

LABEL org.opencontainers.image.authors="moby@example.com"