-
Notifications
You must be signed in to change notification settings - Fork 79
Wrong latest image tag for selfhosted repositories #162
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
Comments
Hi, @ailowry Thanks for raising this issue - Having a quick look I believe the wider issue to be related to the fact that there's no pagination going on, therefore we do only get the first (or last) 500 tags. Additionally, we don't fully support the OCI Model right now and (loosely in places) follow the docker distribution API for self-hosted, I would say we should keep OCI Support in #121 and looks like some efforts on implementation were started in #159 |
We use docker harbor to host our images and we have the same problem. For example: edit: and the error seems to be
|
This issue has been automatically marked as stale because it has not had |
Uh oh!
There was an error while loading. Please reload this page.
I am running version-checker in an offline environment that uses a caching proxy to access Dockerhub. In this case I am looking up the standard redis image and it is showing the wrong latest tag.
I think this is happening because this path is used in selfhosted.go:
tagsPath = "%s/v2/%s/tags/list?n=500"
OCI distribution specification indicates that the n parameter will return the first n tags. The last parameter can be added for additional filtering.
https://github.com/opencontainers/distribution-spec/blob/main/spec.md#listing-tags
Without the last query parameter (described next), the list returned will start at the beginning of the list and include <int> results. As above, the tags MUST be in lexical order.
The text was updated successfully, but these errors were encountered: