MaintainerDeprecated
目录
输出
MAINTAINER instruction is deprecated in favor of using label
描述
MAINTAINER
指令,历史上用于指定 Dockerfile 的作者,现已弃用。要为镜像设置作者元数据,请使用 org.opencontainers.image.authors
OCI 标签。
示例
❌ 不好:不要使用 MAINTAINER
指令
MAINTAINER moby@example.com
✅ 好:使用 org.opencontainers.image.authors
标签指定作者
LABEL org.opencontainers.image.authors="moby@example.com"