維護者已棄用
目錄
輸出
MAINTAINER instruction is deprecated in favor of using label
說明
過去用於指定 Dockerfile 作者的 `MAINTAINER` 指令已被棄用。要設定映像的作者中繼資料,請使用 `org.opencontainers.image.authors` OCI 標籤。
範例
❌ 錯誤:請勿使用 `MAINTAINER` 指令
MAINTAINER moby@example.com
✅ 正確:使用 `org.opencontainers.image.authors` 標籤指定作者
LABEL org.opencontainers.image.authors="moby@example.com"