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
Docker command to check if a local container image is outdated? #30906
Comments
No, there's currently no built-in option to check if an image is "outdated". Automatically updating containers is something that really differs per use-case; "blindly" updating to the latest image is non-trivial. For example For this reason, it's recommended to use an immutable identifier for your containers (for example Having said the above, there are some options;
I hope this answers your question. Please keep in mind that the GitHub issue tracker is not intended as a general support forum, but for reporting bugs and feature requests. For other type of questions, consider using one of; I'm going to close this issue because this is not a bug, but feel free to continue the conversation 👍 |
There is a difference though between "blindly updating" and just getting notified the remote image changed (using the same tag), so that you can start your build and QA process. |
Indeed. A stable mechanism by which one can detect updates to a container without re-downloading the entire container every day would be awesome. Security updates are extremely important, and with this feature missing isn't making it any easier to keep up to date..... |
Just thought I'd leave a message on here in case it helps any one in the future. You can try using Diun for this task. It checks for updates and then can notify you via a number of providers. |
Say compared to the remote image on dockerhub. I've been looking for a canonical way of doing this, but all I've been able to find is brittle bash scripts and the like. No official, recommended way of doing performing such a check. A stack overflow question also hasn't resulted in any definitive answers yet. Neither has this similar question.
Being able to verify whether a local image is outdated compared to its remote is pretty useful for development and staging environments (docker-cloud even allows you to set up auto updating containers for this). I know that there is the possibility of using a webhook to trigger a re-pull after a succesfull image build, but let's say I want to be able to initiate the check from my server, instead of having to have it listen.
Am I right in assuming that there is currently no docker command available to perform this check, or have I missed an obvious, docker native solution to this problem?
The text was updated successfully, but these errors were encountered: