-
Notifications
You must be signed in to change notification settings - Fork 738
Description
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?