Edit

Configure vulnerability assessment for Docker Hub

Onboard a Docker Hub organization to Microsoft Defender for Cloud to enable vulnerability assessment for container images.

Docker Hub is supported as an external registry. After onboarding, images are scanned and vulnerability findings are surfaced as recommendations.

Each Docker Hub connector represents a single Docker Hub organization. To onboard multiple organizations, create a separate connector for each one.

Prerequisites

Onboard Docker Hub to Defender for Cloud

  1. Sign in to the Azure portal.

  2. Go to Microsoft Defender for Cloud > Environment settings.

  3. Select Add environment > Docker Hub.

    Screenshot of selecting Add environment and Docker Hub in Environment settings.

  4. Enter a Connector name.

  5. Select a Location.

  6. Select a Subscription and a Resource group.

  7. Select a Scanning interval.

    Screenshot of the Docker Hub connector details page.

  8. Select Next : Select plans >.

  9. Under the Status column, toggle on the relevant plans:

    • Foundational CSPM: Inventory only
    • Defender for Containers: Inventory and vulnerability assessment
    • Defender CSPM: Adds contextual risk signals

    Screenshot of the Docker Hub select plans page.

  10. Select Next : Configure access >.

  11. Enter the following Docker Hub connection details:

    • Organization: Docker Hub organization name
    • User: Docker Hub username
    • Access token: Docker Hub read-only access token

    Screenshot of configuring access for Docker Hub connector.

  12. Select Next : Review and generate >.

  13. Select Create.

Validate onboarding

After onboarding completes:

  • Verify the Connectivity status for your Docker Hub environment shows as Connected in Environment settings.

  • Verify images from the Docker Hub organization appear in Inventory.

  • Verify vulnerability recommendations are generated for scanned images.

Scanning typically begins within one hour after onboarding.

Next steps