chickenbellyfin / registry-ui Goto Github PK
View Code? Open in Web Editor NEWA Minimal Docker Registry UI
Home Page: https://hub.docker.com/r/chickenbellyfin/registry-ui
License: GNU General Public License v3.0
A Minimal Docker Registry UI
Home Page: https://hub.docker.com/r/chickenbellyfin/registry-ui
License: GNU General Public License v3.0
I use podman/buildah to create images which I push to a private instance of the Docker registry.
I tried using this nice UI but ran into a problem immediately because the images that podman creates have
"ManifestType": "application/vnd.oci.image.manifest.v1+json"
while images from Docker (for example the one for this UI) have
"ManifestType": "application/vnd.docker.distribution.manifest.v2+json"
After some quick hackery (replacing the Accept Header in api.py) I was able to use the ui with my images without any problems which leads me to believe that the two manifest types must be similar enough.
I am not terribly familiar with these low level image aspects and was wondering what a proper solution would be. Do I need to build my images differently or can the UI just show both types without problems?
Hey @chickenbellyfin ! Great UI for docker registry, really appreciate it.
I've had an issue maybe you can take a look.
I got an internal server error with the following page:
and the following logs:
[2022-11-28 18:15:11 +0000] [1] [ERROR] Exception occurred while handling uri: 'http://docker.{reducted}/' Traceback (most recent call last): File "handle_request", line 83, in handle_request from sanic.models.handler_types import ListenerType, MiddlewareType File "/app/src/app.py", line 46, in wrapped return await func(request, *args, **kwargs, creds=creds) File "/app/src/app.py", line 69, in list_repositories repositories = await fetch_repositories(registry, creds=creds) File "/app/src/data_fetch.py", line 55, in fetch_repositories tags = await asyncio.gather(*[api.get_tags(r, creds=creds) for r in repositories]) File "/app/src/api.py", line 53, in get_tags return res['tags'] KeyError: 'tags' [2022-11-28 18:15:11 +0000] - (sanic.access)[INFO][10.0.1.213:55462]: GET http://docker.{reducted}/ 500 799
From my investigation the issue seems to be the following:
When pushing a new image to a repo, it is listed in the catalog as follows:
GET: {reducted_domain}/v2/_catalog
returns:
{"repositories":["{image1}","{image2}","{image3}","{image4}","{image5}"]}
as it is expected to.
But the thing is, the image5 is currently being uploaded/pushed from my computer. The catalog shows it as an image as it is currently being pushed and created an entry for it, but there are no "data" on it when requesting it's tags.
So when requesting https://registry.{reducted}/v2/image5/master/tags/list
the registry returns {"errors":[{"code":"NAME_UNKNOWN","message":"repository name not known to registry","detail":{"name":"testimage5"}}]}
So can we have a handle for it, maybe an entry of the image on the screen, but with no links for details?
Thanks again for the project, looks awesome!
First of thank you for creating this interface.
I get the following error when accessing a image.
⚠️ 404 — Not Found
Requested URL /repo/diony/base not found
After a quick test it appears that viewing a image does not work when it is placed in a separate repository.
For example:
registry.test.com/test
will show the tag list
registry.test.com/diony/base
will not show the tag list & 404's
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.