Last updated
Was this helpful?
Configure Valohai to pull private images from Docker Hub.
Private registries are restricted to organization projects. Personal projects don't have access to private repositories.
Log in to hub.docker.com
Click your username (top-right) → Account Settings
Select Security → New Access Token
Add a description (e.g., "Valohai access token")
Set permissions (Read-only is sufficient for pulling images)
Click Generate
Copy the token immediately—Docker Hub won't show it again
Read more: Docker Hub access tokens
Navigate to Hi, <name> (top-right menu) → Manage <organization>
Go to Registries under organization controls
Click Add a new entry
Configure:
Match pattern: docker.io/<username>/*
Example: docker.io/mycompany/*
Matches all repositories under your username/organization
Registry type: Docker (username and password authentication)
Username: Your Docker Hub username
Password: The access token you created (not your account password)
Save
Reference your Docker Hub image in valohai.yaml:
You can also use the short form (Valohai expands it automatically):
Valohai handles authentication automatically.
Last updated
Was this helpful?
Was this helpful?
- step:
name: train
image: docker.io/mycompany/ml-training:v2.0
command:
- python train.py- step:
name: train
image: mycompany/ml-training:v2.0
command:
- python train.py