Skip to content
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

UI can't list tags if the registry use S3 backend. #355

Open
BizA-Official opened this issue Feb 19, 2024 · 1 comment
Open

UI can't list tags if the registry use S3 backend. #355

BizA-Official opened this issue Feb 19, 2024 · 1 comment

Comments

@BizA-Official
Copy link

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
ui1
ui2

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
Copy link
Owner

Joxit commented Mar 14, 2024

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants