Currently, Harbor supports only one system-default scanner. The following principles are applied to determine the system-default scanner among the installed scanners.
For a brand new installation:
- If no scanner is installed, no system-default scanner is set.
- If only one scanner (either Trivy or Clair) is installed, the installed scanner is the system-default scanner.
- If both Trivy and Clair are installed, Trivy is the system-default scanner.
For upgrades:
- If the upgrading path is from a version that is >=v1.10 to current version (v2.0) and there was an existing system-default scanner set in the previous version, then that scanner is kept as system-default scanner.
- Otherwise, Harbor determines the system-default scanner according to the brand new installation case.