goharbor/harbor

Replication of Images in root path not working for non-dockerhub registries

Open

#19,074 创建于 2023年8月1日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)Go (28,490 star) (5,235 fork)batch import
help wantedkind/requirementreplication/adapters

描述

If you are reporting a problem, please make sure the following information are provided: i want to replicate the image mcr.microsoft.com/mssql-tools through a replication rule. i already added the microsoft registry for the mcr.microsoft.com/mssql/server where replication works just fine by specifying "mssql/server" as the source filter name. for the tools image i tried the filter "mssql-tools", "mssql-tools/**) and "library/mssql-tools" (as noted here: https://goharbor.io/docs/1.10/administration/configuring-replication/create-replication-rules/). sadly none of these filters works, i get the error "failed to fetch artifacts: failed to fetch artifacts: failed to list artifacts of repository library/mssql-tools: http status code: 404, ..."

Expected behavior and actual behavior: either the replication path analog to docker pull path or the prefix "library/" should work also for other registries

Steps to reproduce the problem: create a replication rule for a image at the microsoft image registry mcr.microsoft.com

Versions: Please specify the versions of following systems.

  • harbor version: v2.4.1
  • docker engine version: 19.03.8
  • docker-compose version: 1.21.0

Additional context: for the registry i used the "Docker Registry" Provider

  • Harbor config files: You can get them by packaging harbor.yml and files in the same directory, including subdirectory.
  • Log files: You can get them by package the /var/log/harbor/ .

image because the UI doesn't let me copy the text image

贡献者指南