-
-
Notifications
You must be signed in to change notification settings - Fork 323
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
Cannot show history or delete image (S3 storage) #75
Comments
Hello, I will try to see deeply your issue next week, because I am in Japan now |
Yep I tried a lot of things and I copied here wrong line. I use static tag. |
Hello, version: 0.1
log:
fields:
service: registry
storage:
delete:
enabled: true
cache:
blobdescriptor: inmemory
filesystem:
rootdirectory: /var/lib/registry
http:
addr: :5000
headers:
X-Content-Type-Options: [nosniff]
Access-Control-Allow-Origin: ['https://localhost']
Access-Control-Allow-Methods: ['HEAD', 'GET', 'OPTIONS', 'DELETE']
Access-Control-Allow-Headers: ['Authorization']
Access-Control-Max-Age: [1728000]
Access-Control-Allow-Credentials: [true]
Access-Control-Expose-Headers: ['Docker-Content-Digest']
auth:
htpasswd:
realm: basic-realm
path: /etc/docker/registry/htpasswd version: '2.0'
services:
registry:
image: registry:2.6.2
restart: always
ports:
- 5000:5000
environment:
- REGISTRY_HTTP_HEADERS_Access-Control-Allow-Origin=['*']
volumes:
- ./registry-data:/var/lib/registry
- ./registry-config/credentials.yml:/etc/docker/registry/config.yml
- ./registry-config/htpasswd:/etc/docker/registry/htpasswd
networks:
- registry-ui-net
ui:
image: joxit/docker-registry-ui:static
restart: always
ports:
- 80:80
environment:
- REGISTRY_TITLE=My Private Docker Registry
- REGISTRY_URL=https://registry:5000
depends_on:
- registry
networks:
- registry-ui-net
networks:
registry-ui-net: Any ideas? |
Hi @RANGERBEE, for the delete icon you need this environment on the ui |
Hi @Joxit. Thanks for App. Unfortunately i have the same issue with history and delete. and i also use AWS S3 |
Hello, When you use s3 storage, docker private registry send 307 status code (redirect) to your bucket. Can you open a console and tell me what you have ? I wrote an example here https://github.com/Joxit/docker-registry-ui/tree/master/examples/issue-75 (without credentials in docker registry) and it seems to works. |
Hello!
What exactly additional info I can get for you? I also found 307 http code (in docker logs of the registry container):
In my minio deployment logs I see only:
Maybe this one is a bit related: |
The issue with minio and credentials are CORS.
But Minio is sending Here is the type of error in your browser:
If you want to avoid this issue, you will need a proxy in front of your Minio with a correct |
Hi, I have the same problem: it works well, except for showing the history and for deleting images. This is my docker-compose.yml, my server is called testserver.local in my private network at home (it's a Raspberry Pi) and the error that I see in the log of docker-registry-ui, when requesting the history or a delete, is msg="error authorizing context: basic authentication challenge for realm "Registry Realm": invalid authorization credential". The certificates of docker-registry are self-signed and I don't use HTTPS for docker-registry-ui yet. The browser that I use for docker-registry-ui asks for credentials and these seem to work. Can you help?
|
Hello!
I decided to start a new issue because I don't have any idea what else I can try to make this work.
I deployed secure docker registry (with certs and auth) and this registry is fully functional (I can push and pull images from other nodes after docker login). Registry is behind nginx-proxy but this doesn't change anything - my issue is also reproducible without nginx-proxy by directly calling registry via 5000 port.
Here is my registry config file:
This how to I start my docker registry (docker run equivalent):
And the UI starts via:
Loging in browser works well:
Also after logging list of repositories are available:
But clicking on
causes infinity loading for images,
click on
causes
I believe Access-Control fields from config are set properly, especially when list of repositories and auth works well.
Here is the log from registry container, after click in thrash bin icon:
The text was updated successfully, but these errors were encountered: