---
title: "Scanning Docker images for vulnerabilities with OVHcloud Managed Private Registry"
description: "Find out how to scan Docker images for vulnerabilities with OVHcloud Managed Private Registry"
url: https://docs.ovhcloud.com/fr/guides/public-cloud/containers-orchestration/managed-private-registry/scan-docker-images-vulnerabilities
lang: fr
lastUpdated: 2022-04-15
---
# Scanning Docker images for vulnerabilities with OVHcloud Managed Private Registry

OVHcloud Managed Private Registry service is a composite cloud-native registry which supports both container image management and [Helm](https://helm.sh/) [chart](https://helm.sh/docs/topics/charts/) management.

**This guide will explain how to activate the vulnerabilities scanner and manually scan an image in an OVHcloud Managed Private Registry service.**

## Before you begin

This tutorial presupposes that you already have a working OVHcloud Managed Private Registry and you have followed the guides on [creating a private registry](/fr/guides/public-cloud/containers-orchestration/managed-private-registry/creation.md), [connecting to the UI](/fr/guides/public-cloud/containers-orchestration/managed-private-registry/connect-to-ui.md), [managing users and projects](/fr/guides/public-cloud/containers-orchestration/managed-private-registry/managing-users-projects.md) and [creating and using private images](/fr/guides/public-cloud/containers-orchestration/managed-private-registry/create-private-image.md).

You should have at least one image in your Private Registry:

![Docker image in OVHcloud Managed Private Registry](/images/public-cloud/containers-orchestration/managed-private-registry/scan-docker-images-vulnerabilities/scan-docker-images-vulnerabilities-01.png)

## Instructions

You can scan your images on your private registry by using the Harbor UI.

### Check that you have enabled a vulnerability scanner

By default, when you create a Private Registry in order to enable a vulnerabilities scanner you need to choose a `M` or `L` plan.

:::info
With the `M` and `L` plan, OVHcloud installs and maintains a vulnerability scanner for you: [Trivy](https://aquasecurity.github.io/trivy/) for Harbor version 2.x or [Clair](https://github.com/quay/clair) for Harbor version 1.x.
:::

To verify if you have a vulnerability scanner in your private registry, go to `Interrogation Services
` in the navigation bar.
![Vulnerability scanner in OVHcloud Managed Private Registry](/images/public-cloud/containers-orchestration/managed-private-registry/scan-docker-images-vulnerabilities/scan-docker-images-vulnerabilities-02.png)

As you can see, Trivy is installed and ready to use.

If you want to manually add a vulnerability scanner, you can also do it with `New Scanner
`. However, it will not be updated and maintaned by OVHcloud.
### Scan a Docker image manually

You can manually scan a Docker image.
To do that, access your project, select an image and click on `Scan
`.
![Scan Docker images in OVHcloud Managed Private Registry](/images/public-cloud/containers-orchestration/managed-private-registry/scan-docker-images-vulnerabilities/scan-docker-images-vulnerabilities-03.png)

The scanner starts scanning the image.

![Scan Docker images in OVHcloud Managed Private Registry](/images/public-cloud/containers-orchestration/managed-private-registry/scan-docker-images-vulnerabilities/scan-docker-images-vulnerabilities-04.png)

The number of vulnerabilities is displayed.

![Scan Docker images in OVHcloud Managed Private Registry](/images/public-cloud/containers-orchestration/managed-private-registry/scan-docker-images-vulnerabilities/scan-docker-images-vulnerabilities-05.png)

When you hover the vulnerabilities column, a chart with the vulnerabilities severity is displayed.

![Scan Docker images in OVHcloud Managed Private Registry](/images/public-cloud/containers-orchestration/managed-private-registry/scan-docker-images-vulnerabilities/scan-docker-images-vulnerabilities-06.png)

Click on the image ID to display all vulnerabilities, ranked by severity.

![Scan Docker images in OVHcloud Managed Private Registry](/images/public-cloud/containers-orchestration/managed-private-registry/scan-docker-images-vulnerabilities/scan-docker-images-vulnerabilities-07.png)

#### Scan all the images

You can also scan all your images manually in your private registry.

To do that, go to the `Vulnerability
` tab and open `Interrogation Services
`. Next, click on `Scan Now
`.
![Scan Docker images in OVHcloud Managed Private Registry](/images/public-cloud/containers-orchestration/managed-private-registry/scan-docker-images-vulnerabilities/scan-docker-images-vulnerabilities-08.png)

### Scan all images regularly

You can schedule a scan:

- hourly
- daily
- weekly
- when you want (enter as a cron format)

For that, select the scheduling and click on the `Save
` button.
![Scan Docker images in OVHcloud Managed Private Registry](/images/public-cloud/containers-orchestration/managed-private-registry/scan-docker-images-vulnerabilities/scan-docker-images-vulnerabilities-09.png)

## Go further

To have an overview of OVHcloud Managed Private Registry service, you can consult the OVHcloud Managed Private Registry site.

Join our [community of users](https://community.ovhcloud.com/).
