GCP Artifact Registry
Configure Valohai to pull private images from Google Cloud Artifact Registry.
Private registries are restricted to organization projects. Personal projects don't have access to private repositories.
Create a service account
Navigate to your Google Cloud project that hosts the Artifact Registry
Go to IAM & Admin → Service Accounts
Click Create Service Account
Add roles:
Service Account Token Creator (allows self-token creation)
Artifact Registry Reader (allows pulling images)
Create and download the JSON key file
Read more: GCP Artifact Registry access control
Add credentials to Valohai
Navigate to
Hi, <n>(top-right menu) →Manage <organization>Go to Registries under organization controls
Click Add a new entry
Configure:
Match pattern:
<region>-docker.pkg.dev/<project-id>/*Example:
us-central1-docker.pkg.dev/my-project/*Or narrow it:
us-central1-docker.pkg.dev/my-project/ml-images/*
Registry type: GCP Artifact Registry
Service Account JSON: Paste the entire contents of your JSON key file
Save
Use the private image
Reference your Artifact Registry image in valohai.yaml:
- step:
name: train
image: us-central1-docker.pkg.dev/my-project/ml-images/training:v1.0
command:
- python train.pyValohai handles authentication automatically.
Last updated
Was this helpful?
