End-of-Life (EoL)

Scan images on Docker Hub

To scan a repository on Docker Hub, create a new registry scan rule.
To specify an official Docker repository, enter library/, followed by the short string used to designate the repo. For example, to scan the images in the official Alpine Linux repository, enter library/alpine.
To specify non-official repositories, enter the user name or organization name, followed by a slash, followed by the name of the repo. For example, to specify the alpine repository in onescience’s account, enter onescience/alpine.
To scan all repos from a user or organization, simply enter the user or organization name, followed by a wildcard (*). For example, to scan all repos created by onescience, enter onescience*.
You have installed a Defender somewhere in your environment.
  1. Open Console, and then go to
    Defend > Vulnerabilities > Registry
  2. Click
    Add registry settings
  3. In the dialog, enter the following information:
    1. In the
      drop-down list, select
      Docker Registry v2
    2. Leave the
      field blank. An empty field specifies Docker Hub (hub.docker.com).
    3. In
      Repository name
      , enter the name of the repo to scan. For example, enter
      to scan the official Alpine image. If the repo is part of an organization, use the organization/repository format. For example,
    4. In
      , select the credentials to use. If you are scanning a public repository, leave this field blank. If you are scanning a private repository, and no credentials exist yet, click
      Add New
      , select
      Basic authentication
      , and fill out the rest of the fields.
    5. In
      OS type
      , specify whether the repo holds
    6. In
      , select
      Console automatically selects an available Defender to execute the scan job. Alternatively, you can explicitly select a Defender from the drop-down list. Defenders are listed according to the hosts where they run. For more information, see deployment patterns.
    7. In
      Number of scanners
      , enter the number of Defenders across which scan jobs can be distributed.
    8. Set
      to the number of most recent images to scan. Leaving
      set to the default value of
      will scan the most recent 5 images. Setting this field to
      will scan all images.
    9. Click
  4. Click the yellow save button.
  5. Verify that the images in the repository are being scanned.
    1. Go to
      Monitor > Vulnerabilities > Registry
      A progress bar shows the status of the current scan. As the scan of each image is completed, its findings are added to the results table.
    2. To get details about the vulnerabilities in an image, click on it.
      To force a specific repository to be scanned again, select it from the drop-down menu on the top right of the results table, then click the

Recommended For You