Safeguard
Application Security•

Container Image Scanners: Trivy, Grype, Clair, Docker Scout

Trivy, Grype, Clair and Docker Scout all analyze container images. How each works and what it covers, based on each project's own documentation.

Safeguard Security Team
3 min read

Trivy, Grype, Clair and Docker Scout all analyze container images for known vulnerabilities. Trivy and Grype are command line tools, Clair is a service built around indexing and matching, and Docker Scout is a Docker service reached through Hub, the CLI and a dashboard.

Safeguard publishes this guide and sells a competing product, so we describe other tools only from their own documentation. Facts below are as of 19 October 2026.

Key takeaways

  • Trivy scans images, filesystems, repositories, VM images and Kubernetes, and also finds misconfigurations, secrets and licenses.
  • Grype scans images, filesystems and SBOMs and supports OpenVEX filtering.
  • Clair runs as a service with separate indexing, matching and notification steps.
  • Docker Scout builds an SBOM of an image and checks it against a vulnerability database.

How does each scanner work?

Trivy. An open source scanner from Aqua Security under Apache-2.0. It has standalone and client/server modes, and its image command scans container images.

Grype. A vulnerability scanner for container images and filesystems, licensed Apache-2.0. It reads Docker, OCI and Singularity formats, and can scan a Syft SBOM. It uses EPSS, KEV and risk scoring to rank results.

Clair. Described as an application for parsing image contents and reporting vulnerabilities, using static analysis. Submitting a manifest triggers layer fetching and scanning into an index report. A matcher correlates that report with known vulnerabilities, and a notifier acts when new ones are found. Supported content includes Ubuntu, Debian, RHEL, Suse, Oracle, Alpine, AWS Linux, VMware Photon and Python.

Docker Scout. It examines an image's layers and packages, builds an SBOM and checks it against a continuously updated vulnerability database. You can use it through Docker Hub, the Docker CLI and the Docker Scout Dashboard. The page we read did not cover plans or pricing.

Comparison table

CriteriaTrivyGrypeClairDocker Scout
FormCLICLIServiceDocker service
InputsImages, filesystems, repos, VM images, Kubernetes, SBOMImages, filesystems, SBOMsContainer manifestsContainer images
Extra checksMisconfiguration, secrets, licensesEPSS, KEV, OpenVEXNotifications on new vulnerabilitiesSBOM based analysis
LicenseApache-2.0Apache-2.0Not covered on page we readNot covered on page we read

How to choose

  1. Decide whether you want a CLI in CI or a service your registry calls.
  2. List your base image distributions and confirm support.
  3. Decide if you need secrets, misconfiguration or license scanning.
  4. Check whether you want SBOM input or output.
  5. Scan one image with two tools and compare results.

For a no login look at dependencies, try gold.safeguard.sh/scan.

Frequently asked questions

Is Grype the same as Syft?

No. The Syft README describes Syft as an SBOM generator that works with Grype for vulnerability detection.

Does Clair scan running containers?

Its docs describe static analysis rather than runtime analysis.

Can Trivy scan an SBOM?

Yes. Its docs describe a sbom command that takes an SBOM file as input.

Sources

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.