Docker Hub
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.
Create an access token
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
Add credentials to Valohai
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
Use the private image
Reference your Docker Hub image in valohai.yaml:
- step:
name: train
image: docker.io/mycompany/ml-training:v2.0
command:
- python train.pyYou can also use the short form (Valohai expands it automatically):
- step:
name: train
image: mycompany/ml-training:v2.0
command:
- python train.pyValohai handles authentication automatically.
Last updated
Was this helpful?
