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

Mark outdated images #1493

Closed
eine opened this issue Dec 15, 2019 · 3 comments · Fixed by #2073
Closed

Mark outdated images #1493

eine opened this issue Dec 15, 2019 · 3 comments · Fixed by #2073

Comments

@eine
Copy link

eine commented Dec 15, 2019

The tags of some of the images in the "Images" tree view are likely to get outdated when maintainers push new versions to the corresponding registries. Similarly to how modifications are marked in git repos, I think it would be useful to have a symbol added to outdated images.

Related to #1313, this feature would help users decide when they need to explicitly pull the image.

@eine eine changed the title Mark outdated image Mark outdated images Dec 15, 2019
@dbreshears dbreshears added this to the Future milestone Jan 17, 2020
@bwateratmsft bwateratmsft modified the milestones: Future, 1.3.0 Apr 17, 2020
@dbreshears dbreshears modified the milestones: 1.3.0, 1.4.0 May 21, 2020
@bwateratmsft
Copy link
Collaborator

I've been investigating this some. I can't find any documentation about the Docker Hub API (the old one, not the Registry V2 API). The Registry V2 API is a non-starter for this purpose because it requires authentication, even to access public images.

There is a JSON endpoint, e.g. https://hub.docker.com/v2/repositories/library/nginx/tags/latest, but the last_updated time in that result is unreliably far away from the actual manifest time of the image (e.g. for this nginx:latest, 54 minutes; for alpine:latest, 2 hours 22 minutes). IMO this is too far and too variable to be dependable.

@bwateratmsft
Copy link
Collaborator

Interestingly I found that you do not need to provide anything in the Authorization header to get a valid token from the auth.docker.io/token endpoint; at least for public scopes like repository:library/nginx:pull. With that token you can get a proper manifest from https://registry-1.docker.io/v2/library/nginx/manifests/latest to do an exact check.

@bwateratmsft
Copy link
Collaborator

We have released Docker 1.4.0 which contains this feature. It can be disabled by unchecking "Docker: Images: Check For Outdated Images" in settings.

@vscodebot vscodebot bot locked and limited conversation to collaborators Aug 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants