sonatype / nexus-public

Sonatype Nexus Repository Open-source codebase mirror
https://www.sonatype.com/products/repository-oss-download
Eclipse Public License 1.0
1.85k stars 556 forks source link

proxy gcr private container registry doesn't work #292

Open qingbo-lu opened 7 months ago

qingbo-lu commented 7 months ago

when trying to setup nexus as docker-proxy for gcr private registry, following this guide: WARN [qtp688832529-712] admin org.sonatype.nexus.repository.docker.internal.V2Handlers - Is the remote url a valid docker endpoint? Remote host https://eu.gcr.io/ with path /v2/ops-test/flink-jobs/manifests/1.0.0-rc.77 did not return the expected response. Error message: manifest unknown

WARN [qtp688832529-712] admin org.sonatype.nexus.repository.docker.internal.V2Handlers - Is the remote url a valid docker endpoint? Remote host https://eu.gcr.io/ with path /v2/ops-test/flink-jobs/manifests/1.0.0-rc.77 did not return the expected response. Error message: manifest unknown

if config remote url with trailing gcloud project id, it failed either: 2023-11-15 08:54:30,588+0000 WARN [qtp688832529-722] admin org.sonatype.nexus.repository.docker.internal.V2Handlers - Error: GET /v2/flink-jobs/manifests/1.0.0-rc.77: 400 - org.sonatype.nexus.repository.docker.internal.V2Exception$DigestInvalidByMismatch: provided digest did not match uploaded content

success with quay.io(private registry) docker-hub, gcr public registry.

github-actions[bot] commented 5 months ago

This issue is stale because it has been open for 60 days with no activity.

andy-clave commented 4 months ago

Hello, are there any news here? Can someone explain how to setup proxy for private gcr, I have the same problem.

@qingbo-lu have you been able to fix the problem?

qingbo-lu commented 4 months ago

@andy-clave no, i switched to quay.io

github-actions[bot] commented 2 months ago

This issue is stale because it has been open for 60 days with no activity.

GiGurra commented 2 months ago

Also having this issue. Nexus as proxy to private artifact registry (successor to gcr).

Update: I was able to make nexus repository manager work with private artifact registry repo now. The annoying part is that it you have to point to the domain without ANY path at all, meaning the client that runs the docker pull command must include the full path to the image requested. So to clarify:

In nexus repository manager, set url: https://<location>-docker.pkg.dev and nothing else!, no path When pulling an image from the nexus, use: docker pull <nexus-url>/<gcp-project-id>/<gcp-repo-id>/<image>:<tag>

github-actions[bot] commented 1 day ago

This issue is stale because it has been open for 60 days with no activity.