R
RunPod4w ago
Guray

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
Jason
Jason4w ago
username: _json_key password: $GCS_AUTHORIZATION
Jason
Jason4w ago
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. ...
Jason
Jason4w ago
you can paste the raw password into the registry auth and use that username
Guray
GurayOP4w ago
the base64 solution didn't work but _json_key option worked! Thank you:beers:
Jason
Jason4w ago
Your welcome
Guray
GurayOP4w ago
I've checked it again and unfortunately it's not working 🥺
Jason
Jason4w ago
M did you follow the steps?
Guray
GurayOP4w ago
yes
Jason
Jason4w ago
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
Guray
GurayOP4w ago
checking my permissions on service account hoping to find solution
Jason
Jason4w ago
and your image tag? maybe you can paste your image tag, who knows its missing the first parts?
Jason
Jason4w ago
did you select this one or?
No description
Jason
Jason4w ago
the json doesn't seem to be one liner for me, just tried to make one, and downloaded the json
Guray
GurayOP4w ago
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 🤷🏻‍♂️
Jason
Jason4w ago
I see I haven't tried this sorry, you can also ask in support ticket if you want
Poddy
Poddy4w ago
@Guray
Escalated To Zendesk
The thread has been escalated to Zendesk!

Did you find this page helpful?