Skip to content

Proposal: Add an option to mark images as deprecated in the Image Schema #1224

@8BitSensei

Description

@8BitSensei

Over the years I've noticed a lot of public images that people rely on becoming deprecated, as an example, the OpenJDK image in Dockerhub has been marked as deprecated on its Dockerhub page. Unfortunately, there is no way to communicate this to developers who don't bother to check the Dockerhub page, this leads to a situation where I can see dozens of images across my company alone using a deprecated image, and in the worst case, they only learn this when the image disappears during a service restart or scaling.

Is there a way for us to add a field in the Image Schema to mark an image as depreciated so that developer tools can raise this issue to developers? My first thought would be a bool field on the Image index that will default to false/should be interpreted as false if not present, like deprecated:

{
  "schemaVersion": 2,
  "mediaType": "application/vnd.oci.image.index.v1+json",
  "deprecated": false,
  "manifests": [...],
  "annotations": {...}
}
  • deprecated bool
    This OPTIONAL indicates whether the image should be considered deprecated or not. If this property is not defined, the image should be assumed to not be deprecated.

Is this something that would even be considered in scope for the OCI Image Spec?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions