Connect Docker V2 compliant container registry ↗
A Docker V2-compliant registry is a registry service that complies with the specifications and requirements outlined in the Docker Registry HTTP API V2. This API defines the protocol for interacting with a Docker registry, a repository where Docker images are stored and from which they can be pulled or pushed.
Note: To scan public and private repositories on Docker Hub, use the Docker Hub registry connector.
License type: This feature is included with a Cortex XSIAM Premium license. It is also included with any other Cortex XSIAM product that has the Cloud Posture Security or the Cloud Runtime Security add-on.
How to connect Docker V2
Follow the wizard to use the Docker V2 connector in Cortex XSIAM to scan and secure container images from any container registry that supports the Docker V2 protocol, ensuring comprehensive security.
- Navigate to Settings → Data Sources & Integrations and click + Add New.
- On the Add Data Sources or Integrations page, search for Docker Hub, then hover over it and click Add.
- The Instance Name is automatically populated. You can change it to a more meaningful name.
- Choose the Scan Mode, and then follow the steps for that mode to configure the connection.
Cloud Scan
Security scanning is performed in the Cortex XSIAM environment when you select this mode.
-
Select the appropriate Cloud Provider and Region for the Cortex environment to use for registry scanning.
As a best practice, choose the region closest to your registry deployment to achieve the best scanning throughput and potentially reduce cloud costs.
- (Optional) Enable Allow access by IP’s to specify a static IP address for the scanner to use. Ensure the static IP is allowed through your firewall so the scanner can access the registry during the scanning process.
-
Enter the Registry URL. This must match the URL you use with the docker login command.
Equivalent URL:
https://docker.io/If you are using a CA certificate for authentication, enter the server IP address instead of the Registry URL.
-
Under Authentication Method, enter the Username and Password of the registry that you want to connect.
Use your Docker ID as the username (for example, john0907) and not your email address.
-
(Optional) Expand Show Advanced Settings, and then enter the CA certificate in PEM format for Cortex to validate the Docker registry v2.
Ensure that the Custom CA certificate that you use is not revoked by the issuing authority.
- Select Next.
Scan with Outpost
Security scanning is performed on infrastructure deployed to a cloud account that you own. This mode requires additional cloud provider permissions and may incur extra costs.
Prerequisite
Ensure an Outpost is connected to your tenant.
-
Choose a Cloud Provider to initialize registry scanning.
Note
If you choose Azure as the Cloud Provider, you must also select the Tenant Id. The Tenant Id is required to approve Cortex as an enterprise application in your Azure tenant.
-
Choose Outpost account to use for this instance. If no Outposts are shown, you can Create a new one. For more details, see Outposts.
Note
If you choose Azure as the cloud provider, only Outposts associated with the selected tenant ID are displayed.
- Select the Region where the registry is hosted.
- (Optional) Enable Allow access by IP’s if you want to specify a static IP address for the scanner to use. Make sure the static IP is allowed through your firewall so that the scanner can access the registry during the scanning process.
-
Enter the Registry URL. This must match the URL you use with the docker login command.
Equivalent URL:
https://docker.io/If you are using a CA certificate for authentication, enter the server IP address instead of the Registry URL.
-
Under Authentication Method, enter the Username and Password of the registry that you want to connect.
Use your Docker ID as the username (for example, john0907) and not your email address.
-
(Optional) Expand Show advanced settings, and then enter the CA certificate in PEM format for Cortex to validate the Docker registry v2.
Ensure that the Custom CA certificate that you use is not revoked by the issuing authority.
- Select Next.
Scan with Broker VM
Security scanning in private networks is performed using broker VM infrastructure when you select this mode.
Prerequisite
Ensure one of the following is configured:
- Choose a Scan with Broker VM mode to initiate registry scanning. You can select either a standalone Broker VM or a High Availability (HA) Cluster.
-
Select Applicable Broker VMs.
Choose the appropriate Broker VM or Cluster from the list configured in your tenant.
Note
- The list of Broker VMs displays only VMs that support registry scanning.
- The list of high-availability Clusters displays only clusters that contain at least one VM supporting registry scanning.
- The registry scanning status for each VM appears in brackets if it was previously activated for that specific VM.
If the list does not display any Broker VMs or clusters, Add New Broker VM or Add New Cluster. For more details, see Set up and configure Broker VM.
-
Enter the Registry URL. This must match the URL you use with the docker login command.
Equivalent URL:
https://docker.io/If you are using a CA certificate for authentication, enter the server IP address instead of the Registry URL.
-
Under Authentication Method, enter the Username and Password of the registry that you want to connect.
Use your Docker ID as the username (for example, john0907) and not your email address.
-
(Optional) Expand Show advanced settings, and then enter the CA certificate in PEM format for Cortex to validate the Docker registry v2.
Ensure that the Custom CA certificate that you use is not revoked by the issuing authority.
-
Select Next.
- In the Initial Scan Configuration, set your scanning process to focus on recently added or modified container images and exclude older ones that do not align with your current scanning objectives. This setting helps avoid unnecessary scans. Choose one of the following options:
- All: Scans all container images, including all versions (tags), in all discovered repositories.
- Latest Tag: Scans only images tagged 'latest' in all discovered repositories.
- Days Modified: Scans container images that have been created in the last few days. You can select a range of up to 90 days for the scan.
-
Select Save.
When the Docker V2 data source is saved successfully, a new data connector is created, and the initial discovery scan begins. The connection process can take up to 15 minutes.
- To check the connector status and scan results, follow these steps:
- Navigate to Settings → Data Sources & Integrations.
- Find the Docker V2 integration from the list of data sources, or filter for it.
-
Select the Docker V2 instance row. A pane opens with a list of integration instances and their details showing the following information:
Instance Details Description Status Shows the status of the connector: Connected, Error, Warning, Disabled, or Pending. Applet Status on Broker VM Shows the status of the Registry Scanner applet on the Broker VM page. This status is visible only when the Scan with Broker VM mode is selected. Repositories Shows the number of scanned repositories in the registry. Scan Mode Shows the selected scan mode for the data connector, such as Cloud Scan, Scan with Outpost, or Scan with Broker VM. Security Capabilities Shows a breakdown of the security capabilities enabled on the instance and their individual statuses. For example, select Registry Scanning when it shows a warning or error status to see the open errors and issues that contributed to the status.
- Next Steps
- After the scan is complete, you can view the scanned images on the Container Images Inventory page. For more details, see Container Images assets.
- If you have selected the Scan with Broker VM option, then a Registry Scanner applet is created on the selected Broker VM or Cluster. For details, see Verify Registry Scanner connection.