Learn how to create an OVHcloud Managed Private Registry using the OVHcloud Control Panel, OVHcloud CLI, Terraform, or Pulumi.
A Docker Registry is a system that lets you store and distribute Docker images. OVHcloud Managed Private Registry provides a managed, authenticated Harbor instance where you can privately store your Docker images — ideal for use with OVHcloud Managed Kubernetes Service.
Requirements
- A Public Cloud project in your OVHcloud account
OVHcloud Control Panel Access
- Direct link: Public Cloud Projects
-
Navigation path:
Public Cloud> Select your project
Instructions
- In the left menu, in the
Containers & Orchestrationsection, selectManaged Private Registry. - Click
Create a private registry. - Choose a region, then click
Next. - Enter a name for your registry, then click
Next. -
Choose a plan and click
Next.The
MandLplans include a managed vulnerability scanner: Trivy. - Your private registry is being created.
- When the status switches to
OK, click the more options...button and selectGenerate identification details. - Click
Confirmto generate credentials. - Write down the credentials shown — you will need them to access your registry.
Requirements
- OVHcloud CLI installed and configured
1. List available plans to retrieve a plan ID:
2. Create the registry:
Note the id field in the output — it is your registry ID.
3. Create a user:
Save the credentials from the output — the password will not be shown again.
4. Retrieve the registry URL:
The url field is the address of your Harbor interface.
Terraform is an open-source Infrastructure as Code (IaC) tool. OVHcloud provides an official Terraform provider to manage your resources programmatically.
Requirements
- Terraform CLI 0.12.x or later
Get your API credentials
The OVHcloud Terraform provider requires API credentials. Follow the First steps with the OVHcloud APIs guide to generate your application_key, application_secret, and consumer_key.
Retrieve your Public Cloud project ID (service_name) from the Copy to clipboard button in your project's overview.
Resources definition
Create a provider.tf file:
Use environment variables (OVH_ENDPOINT, OVH_APPLICATION_KEY, OVH_APPLICATION_SECRET, OVH_CONSUMER_KEY) to avoid storing credentials in source files.
Create a variables.tf file:
Create an ovh_private_registry.tf file:
Create an output.tf file:
Deploy
Initialize Terraform and apply the plan:
Review the execution plan and enter yes to confirm. The registry takes a few minutes to provision.
Once complete, retrieve your credentials:
Go to the Managed Private Registry section of the OVHcloud Control Panel to verify the registry has been created.
Destroy
To delete all created resources:
Pulumi is an Infrastructure as Code (IaC) tool that lets you define infrastructure using general-purpose programming languages. OVHcloud provides an official Pulumi provider that bridges the OVHcloud Terraform provider.
Requirements
- Pulumi CLI installed
- A Pulumi account and access token
Get your API credentials
The OVHcloud Pulumi provider requires API credentials. Follow the First steps with the OVHcloud APIs guide to generate your tokens, then export them as environment variables:
Retrieve your Public Cloud project ID (serviceName) from the Copy to clipboard button in your project's overview.
Create the project
Create and initialize a Go Pulumi project:
Install the OVHcloud and Harbor providers:
Set your serviceName:
Define the infrastructure
Replace the content of main.go with:
Run go mod tidy to install dependencies:
Deploy
Review the preview and confirm with yes. The registry takes a few minutes to provision.
Once complete, retrieve your credentials:
Go to the Managed Private Registry section of the OVHcloud Control Panel to verify the registry has been created.
If you encounter a Provider is missing a required configuration key error, make sure all OVH_* environment variables are exported before running pulumi up.
Destroy
To delete all created resources:
Go further
For more information and tutorials, please see our other Managed Private Registry support guides or explore the guides for other OVHcloud products and services.