DL4000: MAINTAINER is deprecated
Error Maintainability
Why This Matters
The MAINTAINER instruction was deprecated in Docker 1.13 back in January 2017. Deprecated instructions create compatibility risks with future Docker versions and signal to reviewers that the Dockerfile may be unmaintained. Use a LABEL instruction instead, which provides the same metadata in a standard format.
How to Fix
Replace MAINTAINER with a LABEL instruction
Before (incorrect)
MAINTAINER john@example.com After (correct)
LABEL maintainer="john@example.com" Rule Details
- Rule Code
- DL4000
- Severity
- Error
- Category
- Maintainability