andrey-pohilko / registry-cli

Scripts for easy manipulation of docker-registry from command line (and from scripts)
GNU General Public License v3.0
895 stars 216 forks source link

ECR: Not supported because n parameter of list_images to high #79

Open theCapypara opened 5 years ago

theCapypara commented 5 years ago

Right now ECR registries are not supported, because the "n" parameter of the image listing request is too high.

This is the error message: {"errors":[{"code":"UNSUPPORTED","message":"Invalid parameter at 'maxResults' failed to satisfy constraint: 'Member must have value less than or equal to 1000'"}]}

andrey-pohilko commented 5 years ago

ECR Registry doesn't have any clean up functionality?

theCapypara commented 5 years ago

Yes I also noticed this after manually changing the limit (although I found it weird that it is not explained in the AWS docs that deleting repositories via the Docker API does not work, but of course that's no issue of registry-cli).

I guess it would still be nice to use registry-cli to list images in ECR repositories though.

andrey-pohilko commented 4 years ago

Please correct me if I'm wrong. Does this message from AWS mean that you have more than 1000 images in your repository there?

theCapypara commented 4 years ago

No, ECR complains that the limit parameter used is too high. Lowering it below 1000 works. We only have a couple images.