-
-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
size of image is not shown #296
Comments
Hi, thank you for using my project 😄 I need more details about your issue 🙂 |
https://ibb.co/Zh1n2FZ or https://pasteboard.co/LnXxQha0H2BZ.png ununtu 22.04.2 |
I checked your screenshot, please next time fufill correctly a bug report as defined here So there are no longer an option named I would need errors in your web console. |
Access to XMLHttpRequest at 'https://10.0.0.224/v2/********integration/manifests/666' from origin 'https://dockerregistry2.domain.tld/' has been blocked by CORS policy: Request header field accept is not allowed by Access-Control-Allow-Headers in preflight response. 10.0.0.224 is registry container With https or without, with ip or with fqdn error the same - has been blocked by CORS policy. |
Hi, your error says
The configuration for http:
headers:
Access-Control-Allow-Methods: ['HEAD', 'GET', 'OPTIONS', 'DELETE']
Access-Control-Allow-Headers: ['Authorization', 'Accept', 'Cache-Control']
Access-Control-Expose-Headers: ['Docker-Content-Digest'] |
I'm experiencing a similar issue as well, and I have already configured the
http:
addr: :5000
headers:
Access-Control-Allow-Methods: ['HEAD', 'GET', 'OPTIONS', 'DELETE']
Access-Control-Allow-Headers: ['Authorization', 'Accept', 'Cache-Control']
Access-Control-Expose-Headers: ['Docker-Content-Digest']
Access-Control-Allow-Origin: ['https://registry-ui.my']
Access-Control-Max-Age: [1728000]
X-Content-Type-Options: [nosniff] |
Hello, thank you for using my project. I need more details such as the browser console + network tab |
Hi, I think I'm having the same issue. let's see if I can help get you the information that you need.
I'm both containers on the same linux machine using docker-compose. Here's my yml
The registry-ui is not on the web, or accessible from outside my private network. I'm still using authentication, as the registry itself is web published via a reverse proxy. |
Hi @colindawson, your issue is simple, you just need to read the FAQ and all the linked issues...:
If you are using |
@Joxit I've read through that part of the FAQ, skimmed, the linked issues, looked at the documentation, and it all means absolutely nothing to me. I'm not using NGINX_PROXY_PASS_URL. For the purposes of the registry UI, I'm running both containers on the same machine, the registry on port 5000, and the registry-ui on port 8080. |
Yeah, but this is exactly what I saw in your screenshot: "preflight request" and "401 status code". Both of them are in the FAQ. The FAQ gives you three ways to fix your issue: Use the same domain OR use Some working examples from the linked issues that uses Or I can do it for you: docker-compose.yaml version: '3.1'
services:
registry-server:
image: registry:2.8.2
restart: always
ports:
- 5000:5000
environment:
REGISTRY_AUTH: htpasswd
REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd
REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
volumes:
- ./registry/data:/var/lib/registry
- ./registry/config.yml:/etc/docker/registry/config.yml:ro
- ./registry/auth:/auth
container_name: registry-server
registry-ui:
image: joxit/docker-registry-ui:main
restart: always
ports:
- 8080:80
environment:
- NGINX_PROXY_PASS_URL=http://registry-server:5000
- DELETE_IMAGES=true
- SHOW_CONTENT_DIGEST=true
- SINGLE_REGISTRY=true
container_name: registry-ui This configuration should work for you |
That fixed it for me. Everything sounded far too cryptic for me. Seeing the example above, showed me what to do...
In summary the delta change is remove "- REGISTRY_URL=http://linux.lan.local:5000" Then hey presto, it's all working as you intended. Thank you. It would not surpise me if the OP had the same issue, just didn't know how to articulate the problem. |
Nice ! |
Maybe worth adding a docker-compose folder to the examples, and putting in a docker-compose like I have? That should be enough to get a simple example working. Also wondering if it's possible to combine the NGINX_PROXY_PASS_URL and REGISTRY_URL parameters, so that there's no need to switch from one to the other. Again would help to simplify the setup for people who are not familiar with the project. |
In fact, they already exists 😅 Your first docker-compose.yml and the new one The use of
|
Ah ha. now I see why I didn't see those files, didn't think to look in that folder. Here's my logic as to why....
Not sure if anything can/should be changed. Just pointing out what was going on in my head. Anyways, I love that it's working, and it's giving me much much more information that I expected. Love the project, it's awesome. |
Thank you for you feedback 😄 I added a recommended docker-compose in the main README with the release of 2.5.0! I think the example part need some rework anyway 😄 Thank you, I really appreciate 🥰 |
cannot see image size for any installation
The text was updated successfully, but these errors were encountered: