GCP Artifact Registry
Last updated
Was this helpful?
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.
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
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
Reference your Artifact Registry image in valohai.yaml:
Valohai handles authentication automatically.
Last updated
Was this helpful?
Was this helpful?
- step:
name: train
image: us-central1-docker.pkg.dev/my-project/ml-images/training:v1.0
command:
- python train.py