UI can't list tags if the registry use S3 backend.
BizA-Official opened this issue · 1 comments
BizA-Official commented
Hi everyone!
I migrated my registry's data to s3 and I experience a very interesting issue.
On the main page of the UI, I can see how many tags I have under an image, however it can't list them:S
I have not received any error message.
Here is my docker-compose.yml file:
version: '3.8'
services:
registry:
image: registry:latest
ports:
- "45000:5000"
environment:
REGISTRY_AUTH: htpasswd
REGISTRY_AUTH_HTPASSWD_REALM: Registry
REGISTRY_AUTH_HTPASSWD_PATH: /auth/registry.password
volumes:
- ./auth:/auth
- ./config.yml:/etc/docker/registry/config.yml
- ./data:/var/lib/registry
restart: always
networks:
- local
registry-ui:
image: joxit/docker-registry-ui:main
restart: always
ports:
- 45480:80
environment:
- REGISTRY_URL=https://registry-ui.example.com
- SINGLE_REGISTRY=false
- REGISTRY_TITLE=Otthonzona Docker Registry
- DELETE_IMAGES=true
- SHOW_CONTENT_DIGEST=true
- NGINX_PROXY_PASS_URL=http://docker-registry-registry-1:5000
- SHOW_CATALOG_NB_TAGS=true
- CATALOG_MIN_BRANCHES=1
- CATALOG_MAX_BRANCHES=1
- TAGLIST_PAGE_SIZE=100
- REGISTRY_SECURED=true
- CATALOG_ELEMENTS_LIMIT=1000
container_name: registry-ui
networks:
- local
networks:
local:
name: docker-registry_default
external: true
And my config.yml file:
version: 0.1
log:
level: debug
fields:
service: registry
storage:
delete:
enabled: true
cache:
blobdescriptor: inmemory
s3:
accesskey: accesskey
secretkey: secretkey
region: "minio-s3-1"
regionendpoint: "minio-s3-1.example.com"
bucket: docker-registry
encrypt: false
secure: true
v4auth: true
chunksize: 5242880
rootdirectory: /data
redirect:
disable: true
http:
addr: 0.0.0.0:5000
headers:
X-Content-Type-Options: [nosniff]
Access-Control-Allow-Origin: ['*']
Access-Control-Allow-Methods: ['HEAD', 'GET', 'OPTIONS', 'DELETE']
Access-Control-Allow-Headers: ['Authorization', 'Accept']
Access-Control-Max-Age: [1728000]
Access-Control-Allow-Credentials: [true]
Access-Control-Expose-Headers: ['Docker-Content-Digest']
health:
storagedriver:
enabled: true
interval: 10s
threshold: 3
My S3 allows CORS from *
Joxit commented
Hi, thank you for using my project.
Could you share your browser console outputs ?
Oh, if you did a migration, the 19 tags from the catalog may be the local cache ?