goharbor/harbor

setup proxy cache to Google Artifact registry is failing

Open

#20,682 opened on 2024年7月1日

GitHub で見る
 (13 comments) (1 reaction) (1 assignee)Go (28,490 stars) (5,235 forks)batch import
area/proxy-cachehelp wantedkind/requirement

説明

I have installed harbor and setup ingress and added a proxy registry with Google GCR provider but with Artifact registry as the Endpoint URL(https://us-docker.pkg.dev/<GCP_PROJECT>).

But when i am trying to pull from the harbor endpoint, it is giving the below error. Error response from daemon: unknown: repository proxy-cache/prod-docker-us/hello-world not found

Docker login works and i am using the command in the format as below: docker pull <HARBOR_ENDPOINT>/<HARBOR_PROJECT_NAME>/<GAR_REPO_NAME>/hello-world:latest

And i was able to pull the image from GAR successfully using Google Artifact Registry endpoint.

After checking the harbor-core pod logs, i could see the below logs: 2024-07-01T19:43:19Z [ERROR] [/server/middleware/repoproxy/proxy.go:121]: failed to proxy manifest, fallback to local, request uri: /v2/proxy-cache/hello-world/manifests/latest, error: http status code: 405, body:

コントリビューターガイド

setup proxy cache to Google Artifact registry is failing · goharbor/harbor#20682 | Good First Issue