Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate Images #907

Closed
minrk opened this issue Jan 12, 2017 · 8 comments
Closed

Deprecate Images #907

minrk opened this issue Jan 12, 2017 · 8 comments
Labels

Comments

@minrk
Copy link

minrk commented Jan 12, 2017

I've deprecated a few images over the years, but I haven't seen a good way to communicate that to people, because they don't see any messages when they try to use the image. How can I best signal that a foo/bar image is deprecated, and a other/better-bar images should be used instead? I can update the description on the Hub, but nobody looks at those, as far as I can tell.

@schmunk42
Copy link

Ping @thaJeztah

@thaJeztah
Copy link
Member

Docker Hub doesn't have such an option (not even sure if the registry spec would have something in the API to communicate such errors).

I think the best approach would be to;

  • Clearly mark the image as deprecated in the README (obviously, that won't help for users not looking at Docker Hub)
  • Perhaps push a new version of the deprecated image and make it print / log a warning?

I realise it can be a pain; some users just never update (frequently run into that myself with users reporting "bugs" with <insert obsolete version of docker here>)

@JeffUnderhill
Copy link

I realize this issue is somewhat old, but it is also still open and I just ran into a need for this myself. For example there's an official Docker image for Jenkins that has been deprecated in favor of the Jenkins community LTS image. The README clearly states this but it would also be useful if Docker Hub had a DEPRECATED tag (like the tags for "Container", "Linux", "ARM 64", "Base Images" etc...) as this would allow users to filter and identify deprecated images at a higher level and maybe even programmatically when pulling the image?

@silverwind
Copy link

I think npm does this pretty well. For docker, I could see a docker deprecate <image> (and undeprecate) command being made which after running would issue a warning every time that image is pulled.

My use case is deprecation of arch-specific images which have been moved to a multi-arch image.

@github-actions
Copy link

github-actions bot commented Jun 2, 2021

We are clearing up our old issues and your ticket has been open for 6 months with no activity. Remove stale label or comment or this will be closed in 15 days.

@smheidrich
Copy link

As a workaround, I wrote a horrendous hack that replaces every single executable in an image with a wrapper that prints a (deprecation) warning, so it will get printed no matter what the user does with the image: https://github.com/smheidrich/omniwarn
I agree it would be better if Docker / Docker Hub came with a native feature for gentle deprecation, i.e. not just taking the image down, but printing a difficult-to-ignore warning or something like that.

@alexey-milovidov
Copy link

This issue is relevant for ClickHouse. We recently have moved from the old organization on DockerHub to another and want to migrate the users.

@uilianries
Copy link

I asked for it 2 years ago: https://forums.docker.com/t/mark-image-as-deprecated/104714

My point was using a label in the Docker recipe that identifies as deprecated. It could TRUE, or even a name for a new image to be used instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants