docker-registry-frontend
docker-registry-frontend copied to clipboard
Docker images amount restriction
ENV_DEFAULT_REPOSITORIES_PER_PAGE=20 Open UI. We have more than 100 images in repo. Clicking "Show All" at the bottom of the page:
Expected behavior
Expected listing of all images.
Actual behavior
Only 100 are displayed.
Specifications
Docker: Client: Version: 1.8.2 API version: 1.20 Package Version: docker-1.8.2-7.el7.x86_64 Go version: go1.4.2 Git commit: bb472f0/1.8.2 Built: OS/Arch: linux/amd64
OS RHEL 7: 3.10.0-327.10.1.el7.x86_64
docker-registry-frontend: Commit
Short answer as I'm in a hurry but I ll edit this afternoon when I have more time.
It is basically because of the implantation of the Docker Registry.
See the implementation (https://github.com/docker/distribution/blob/master/registry/handlers/catalog.go)
But maybe we should let the user know that the maximum is up to 100 by request.
'last' parameter should be used as described in the API spec to go page by page.
+1 on @mnarusze comment :
when provisionning data, if show all is selected, it should call the api in loop /v2/_catalog?n=&last=<100thRepoFound>
with the last item found from previous search until no results are found
I can't really test it from work. If sometone with the issue can check with that PR, it would be nice.
@drallieiv any updates on this?
just tripped up on this myself, setting the number to something high works around the issue e.g. ...repositories/99999
but it would be nice to have the 'all' limit working as designed.