Skip to content
Evergreen Evergreen
Documentation

The Dockerfile MAINTAINER instruction is deprecated

Deprecated. The source gives no day. Replacement: A LABEL org.opencontainers.image.authors instruction carrying the same author text. Source: Dockerfile reference: MAINTAINER (deprecated).

Check a version:

evergreen check pkg:generic/dockerfile

The Dockerfile reference marks MAINTAINER as deprecated because author metadata belongs in the org.opencontainers.image.authors label.

Look up another package or runtime · <form action="../lookup.html" method="get" role="search"> </form>

   
Status Deprecated
Severity low
Ecosystem container
Component pkg:generic/dockerfile
Affected versions vers:semver/*
Date from the source The source gives no day
Replacement A LABEL org.opencontainers.image.authors instruction carrying the same author text
Evidence last seen 2026-10-31
Reviewed 2026-10-31 by arminazimi
Review due 2027-10-31 (365 days after the last review)
Rule ID container.dockerfile.maintainer

Sources

Migration

Constraints

  • Keep the author text exactly as it is written.
  • Quote the label value so spaces and punctuation stay part of the value.

Steps

  1. Replace MAINTAINER with the OCI author label. Replace the MAINTAINER instruction with LABEL org.opencontainers.image.authors, using the same author text as a quoted value.

Verification

  • docker build .: Build the image with the rewritten Dockerfile.
  • docker inspect IMAGE: Confirm the image carries the org.opencontainers.image.authors label.

Detected by

The container detector. See Detectors and Compatibility.

Other versions of this product

Same ecosystem

Data

This page is generated from registry/container.json, rule container.dockerfile.maintainer, in the ebb.registry.v2 format (how rules are written). A CLE (ECMA-428) export is not published yet. The same facts are embedded in this page as schema.org structured data.

Last updated