维护者已弃用
目录
输出
MAINTAINER instruction is deprecated in favor of using label描述
历史上用于指定 Dockerfile 作者的MAINTAINER指令已弃用。要为镜像设置作者元数据,请使用org.opencontainers.image.authors OCI 标签。
示例
❌ 错误:不要使用MAINTAINER指令
MAINTAINER [email protected]✅ 正确:使用org.opencontainers.image.authors标签指定作者
LABEL org.opencontainers.image.authors="[email protected]"