Maintainer已弃用

输出

MAINTAINER instruction is deprecated in favor of using label

描述

MAINTAINER指令,历史上用于指定 Dockerfile 已弃用。要设置镜像的作者元数据,请使用org.opencontainers.image.authors OCI 标签

例子

❌ Bad: 不要使用MAINTAINER指令

MAINTAINER moby@example.com

✅ Good:使用org.opencontainers.image.authors标签

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