Can't access private Google Artifact Registry (gcr.io) images
Hello, I can't connect private Google Artifact Registry (aka. Google Container Registry) images, because Google simply doesn't provide a username and password credentials for us. Is there a way to pass credentials to serverless worker config like how circleci did https://discuss.circleci.com/t/authenticated-docker-pulls-for-gcp-artifact-registry/42194 ?
CircleCI Discuss
Authenticated docker pulls for GCP Artifact Registry?
I’d like to use private docker images stored in GCP Artifact Registry for some of my jobs. I’ve been looking through the documentation but I haven’t found a way to do authenticated docker pulls from there. My understanding is that there’s no way to generate a long-lived username/password, you can only have a long-lived service account key (whic...
17 Replies
username:
_json_key
password: $GCS_AUTHORIZATION
Got from: https://discuss.circleci.com/t/authenticated-docker-pulls-for-gcp-artifact-registry/42194/2
CircleCI Discuss
Authenticated docker pulls for GCP Artifact Registry?
This is the third Google result for me when I searched CircleCI + Artifact Registry. I got this working, so I’m going to document how I did it! Too Long; Didn’t Read Turns out the Authorizing with Google Cloud SDK for Container Registry works for Artifact Registry too! Follow the instructions and use your Artifact Registry URL to download it. ...
you can paste the raw password into the registry auth
and use that username
the base64 solution didn't work but
_json_key
option worked! Thank you:beers:Your welcome
I've checked it again and unfortunately it's not working 🥺
M did you follow the steps?
yes
It still didn't work? Can you send what you pasted on the password
are you using the whole .json file? ( dont send a working one tho)
It's not the base64 encoded right
I've pasted one line json credentials there. I've followed this part as well: https://cloud.google.com/artifact-registry/docs/docker/authentication?hl=en#json-key
checking my permissions on service account hoping to find solution
and your image tag?
maybe you can paste your image tag, who knows its missing the first parts?
did you select this one or?

the json doesn't seem to be one liner for me, just tried to make one, and downloaded the json
Try to use it, you will get an error if its not a one line. You should convert it to one line if you want to use it
The issue is not runpod related on my side
I’m trying to figure out why I can’t use this approach
Tried with a fresh ubuntu machine and I got the docker login error with unauthorized access label
Will try it tomorrow 🤷🏻♂️
I see I haven't tried this sorry, you can also ask in support ticket if you want
@Guray
Escalated To Zendesk
The thread has been escalated to Zendesk!