docker-registry-frontend icon indicating copy to clipboard operation
docker-registry-frontend copied to clipboard

Docker images amount restriction

Open vkostetski opened this issue 8 years ago • 6 comments

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

vkostetski avatar Apr 19 '16 11:04 vkostetski

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.

arthurdk avatar Apr 19 '16 12:04 arthurdk

'last' parameter should be used as described in the API spec to go page by page.

mnarusze avatar Jun 02 '16 08:06 mnarusze

+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

drallieiv avatar Jan 31 '17 10:01 drallieiv

I can't really test it from work. If sometone with the issue can check with that PR, it would be nice.

drallieiv avatar Jan 31 '17 11:01 drallieiv

@drallieiv any updates on this?

gtorre avatar Sep 28 '17 20:09 gtorre

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.

binhex avatar Nov 02 '17 11:11 binhex