Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to setup Jfrog docker repository as remote in GCP artifacts

Hello All,
I have a problem configuring remote repository in GCP that point to our Jfrog docker repository.
I have created a gcp artifacts repo(europe-west1-docker.pkg.dev/<gcp-project>/jfrog-remote) that points to jfrog (<jfrog-url>/), note that gcp does not allow to set remote docker repo as path, just url(<jfrog-url>/) although, docker images are under a path (<jfrog-url>:443/artifactory/<docker-repo-local>/).

If I tried to pull the image through gcp artifacts registry but it can not be reached, I tried this command with the repo name in Jfrog

docker pull europe-west1-docker.pkg.dev/<gcp-project>/jfrog-remote/<docker-repo-local>/<image>:<tag>

then i get this error:
rror response from daemon: failed to resolve reference "europe-west1-docker.pkg.dev/<gcp-project>/jfrog-remote/<docker-repo-local>/<image>:<tag>": unexpected status from HEAD request to https://europe-west1-docker.pkg.dev/v2/<gcp-project>/jfrog-remote/<docker-repo-local>/<image>/manifests/<tag>: 403 Forbidden

I tried it again without the the repo name:
docker pull europe-west1-docker.pkg.dev/<gcp-project>/jfrog-remote/<image>:<tag>

then I got the same error:
Error response from daemon: failed to resolve reference "europe-west1-docker.pkg.dev/<gcp-project>/jfrog-remote/<image>:<tag>": unexpected status from HEAD request to https://europe-west1-docker.pkg.dev/v2/<gcp-project>/jfrog-remote/<image>/manifests/<tag>: 403 Forbidden

What did I do wrong? How can I properly pull the image?
0 4 1,048
4 REPLIES 4
Top Labels in this Space