diff --git a/README.md b/README.md index 44c5fac..442a7fd 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,8 @@ Checkout all options in [Available options](#available-options) section. - Yes but it is at your own risk using two regstry servers, check the comment [#155](https://github.com/Joxit/docker-registry-ui/issues/155#issuecomment-1286052124). - How to fix CORS issue on s3 bucket ? - You should add a CORS Policy on your bucket, check the issue [#193](https://github.com/Joxit/docker-registry-ui/issues/193). +- Why my docker regisrty server is returning an error `pagination number invalid` ? + - Since docker registry server 2.8.2 there is default limit of 1000 images in catalog. If you need more images update the configuration `REGISTRY_CATALOG_MAXENTRIES` with your max value and check the issue [#306](https://github.com/Joxit/docker-registry-ui/issues/306). Need more informations ? Try my [examples](https://github.com/Joxit/docker-registry-ui/tree/main/examples) or open an issue. @@ -83,7 +85,7 @@ Some env options are available for use this interface for **only one server** (w - `PULL_URL`: Set a custom url when you copy the `docker pull` command (see [#71](https://github.com/Joxit/docker-registry-ui/issues/71)). (default: value derived from `REGISTRY_URL`). Since 1.1.0 - `DELETE_IMAGES`: Set if we can delete images from the UI. (default: `false`) - `SHOW_CONTENT_DIGEST`: Show/Hide content digest in docker tag list (see [#126](https://github.com/Joxit/docker-registry-ui/issues/126) and [#131](https://github.com/Joxit/docker-registry-ui/pull/131)). (default: `false`). Since 1.4.9 -- `CATALOG_ELEMENTS_LIMIT`: Limit the number of elements in the catalog page (see [#39](https://github.com/Joxit/docker-registry-ui/issues/39), [#127](https://github.com/Joxit/docker-registry-ui/pull/127) and [#132](https://github.com/Joxit/docker-registry-ui/pull/132)). (default: `100000`). Since 1.4.9 +- `CATALOG_ELEMENTS_LIMIT`: Limit the number of elements in the catalog page (see [#39](https://github.com/Joxit/docker-registry-ui/issues/39), [#127](https://github.com/Joxit/docker-registry-ui/pull/127), [#132](https://github.com/Joxit/docker-registry-ui/pull/132)) and [#306](https://github.com/Joxit/docker-registry-ui/issues/306). (default: `1000`). Since 1.4.9 - `SINGLE_REGISTRY`: Remove the menu that show the dialogs to add, remove and change the endpoint of your docker registry. (default: `false`). Since 2.0.0 - `NGINX_PROXY_PASS_URL`: Update the default Nginx configuration and set the **proxy_pass** to your backend docker registry (this avoid CORS configuration). This is usually the name of your registry container in the form `http://registry:5000`. Since 2.0.0 - `NGINX_PROXY_HEADER_*`: Update the default Nginx configuration and **set custom headers** for your backend docker registry via environment variable and file (`/etc/nginx/.env`). Only when `NGINX_PROXY_PASS_URL` is used (see [#89](https://github.com/Joxit/docker-registry-ui/pull/89)). Since 1.2.3 diff --git a/src/components/catalog/catalog.riot b/src/components/catalog/catalog.riot index 7410253..91aea31 100644 --- a/src/components/catalog/catalog.riot +++ b/src/components/catalog/catalog.riot @@ -96,6 +96,15 @@ along with this program. If not, see . }, []); } else if (this.status === 404) { self.props.onNotify({ code: 'CATALOG_NOT_FOUND', url: catalogUrl }, true); + } else if (this.status === 400) { + let response; + try { + response = JSON.parse(this.responseText); + } catch (e) {} + if (!response || !Array.isArray(response.errors)) { + return self.props.onNotify(this.responseText, true); + } + self.props.onNotify({ ...response, url: catalogUrl }, true); } else { self.props.onNotify(this.responseText); } diff --git a/src/components/docker-registry-ui.riot b/src/components/docker-registry-ui.riot index 3078f54..8b8efe5 100644 --- a/src/components/docker-registry-ui.riot +++ b/src/components/docker-registry-ui.riot @@ -83,12 +83,20 @@ along with this program. If not, see . opened="{ state.authenticationDialogOpened }" > +