dockerhub API returns only first 10 tags
Summary
I tried to update elasticsearch docker version from dockerhub. Auto-updates changes version to wrong version. I managed to find out that dockerhub API returns only first 10 records. The newest version/tag wasn't in first 10 records.
Steps to reproduce
- Update elasticsearch docker from dockerhub with auto-updater
- Find out that it's wrong
Expected behavior
Auto-updater should update to newest version
Actual behavior
Auto-updater should update to older version
Relevant logs and/or screenshots
This is what we get
https://registry.hub.docker.com/v2/repositories/library/elasticsearch/tags/?page=1
Newest verions is here:
https://registry.hub.docker.com/v2/repositories/library/elasticsearch/tags/?page=2
Possible fixes
Get more records from dockerhub API
Edited by Przemek Stemplewski