Best lists

Best Vulnerability Scanner for Docker in 2026: 8 Tools Compared

Your Docker image probably ships with known vulnerabilities. These eight scanners find them before your users do — most of them for free.

Cysoro Security TeamPublished · 11 min read
BEST LISTS Docker Scanners Find the CVEs before you ship. CYSORO ▣ myapp:latest ! 3 CRITICAL CVEs 12 HIGH · 28 MEDIUM ✓ Fix: upgrade base image node:20-alpine → node:22-alpine Scan in CI — fail on critical
Quick answer

The best vulnerability scanner for Docker for most teams is Trivy, because it is free and open source, scans images, filesystems and infrastructure code in one binary, and plugs into almost any CI pipeline. Grype with Syft is the best choice for teams that build around software bills of materials, Docker Scout is best for teams already living in Docker Hub, and Snyk Container is best when you want guided fixes and pull-request integration.

Key takeaways

  • Trivy is the best free Docker scanner for most teams: one binary, broad coverage, and easy CI integration.
  • Scan in the build pipeline, not only in the registry — a scanner that runs after deployment is a safety net, not a control.
  • Fix the base image first: one base-image upgrade often clears more vulnerabilities than patching packages one by one.

A Docker image is a stack of other people's software: a base operating system, language runtimes, libraries, and your code on top. Every layer can carry a known vulnerability, and the only way to know is to scan the image before you ship it.

What is a Docker vulnerability scanner?

A Docker vulnerability scanner inspects a container image and reports the known vulnerabilities, or CVEs, in the operating system packages and application dependencies inside it. It compares what the image contains against vulnerability databases such as the National Vulnerability Database and vendor advisories.

The scanner reads the image layers, lists every installed package and its version, and matches them against known vulnerable versions. Good scanners also report the severity of each finding, whether a fix is available, and which base-image upgrade would clear the most issues.

Some scanners go further. Trivy, for example, also checks infrastructure-as-code files for misconfigurations and searches for leaked secrets in the image. Others focus purely on CVEs and leave configuration checks to separate tools.

Scanning matters because images are reused constantly. A base image you pulled six months ago can gain new known vulnerabilities as researchers publish them, even though nothing in your image changed. That is why scanning once is not enough, and why the best teams scan on every build and re-scan images in the registry.

How did we choose these scanners?

We looked for scanners that work with Docker images specifically, are still maintained, and fit into a normal build pipeline. We also favored tools with a genuinely free tier, because scanning should not be a luxury.

Scan early, scan again later 1. Build timescan the image in CIfail on critical CVEsCheapest place to fix 2. Registryre-scan stored imagescatch new CVEsSafety net 3. Runtimewatch running containersdetect live abuseLast line of defense A scanner at step 1 stops bad images. Steps 2 and 3 catch what step 1 missed.
Scanning at build time is cheapest; registry and runtime scanning catch what slips through. Illustration by Cysoro.

We judged each tool on coverage, speed, CI integration, the quality of its fix guidance, and price. A scanner that finds every CVE but gives you no way to fix them is less useful than one that finds slightly fewer and tells you exactly which base image to upgrade.

We did not test the tools against a fixed image set, and this article does not claim test results or accuracy rankings. The comparisons below reflect each tool's documented features and pricing, checked in November 2026.

Which Docker vulnerability scanner should you use?

Use Trivy as your default, Grype with Syft if your workflow centers on SBOMs, Docker Scout if you live in Docker Hub, and Snyk if you want guided fixes in pull requests. The table compares all eight tools.

ToolBest forPriceScansKey strength
TrivyMost teams, one free toolFree, open sourceImages, filesystems, IaC, secretsBroadest free coverage
Grype + SyftSBOM-first pipelinesFree, open sourceImages from SBOMsClean CVE signal, re-scan SBOMs
Docker ScoutDocker Hub teamsFree tier; Pro from $9/user/monthImages, base-image adviceBuilt into Docker CLI and Hub
Snyk ContainerGuided fixes in pull requestsFree tier; credit-based Enterprise pricingImages, dependenciesFix advice and IDE integration
ClairSelf-hosted registry scanningFree, open sourceImages via APIRegistry-native, API first
Docker BenchHost and daemon hardeningFree, open sourceDocker configurationCIS benchmark checks
HadolintDockerfile lintingFree, open sourceDockerfilesCatches risky build patterns early
WizCloud and container platformCustom pricingImages, cloud, runtimeFull cloud security context

Prices are from the vendors' own pricing pages, checked in November 2026. Docker's pricing FAQ confirms the Scout limits: one Scout-enabled repository on Personal, two on Pro, and unlimited on Team and Business. Docker Scout's Pro plan is $9 per user per month billed annually, and Team is $15 per user per month billed annually. Snyk's paid plans use credit-based Enterprise pricing; contact Snyk for a quote.

1. Trivy — best overall Docker vulnerability scanner

Trivy, from Aqua Security, is a single binary that scans container images, filesystems, Git repositories and Kubernetes workloads. It reports known vulnerabilities in OS packages and language dependencies, and also checks infrastructure-as-code for misconfigurations and searches for leaked secrets.

  • Scans images, filesystems, repositories and Kubernetes clusters
  • Covers OS packages, language dependencies, IaC misconfigurations, secrets and licenses
  • Outputs JSON, SARIF and table formats for CI integration
  • Runs offline with a cached vulnerability database

Pros: free and open source; the widest free coverage in one tool; fast and easy to add to any CI pipeline.

Cons: can surface CVEs with no fix available, which adds noise; its output needs triage on large images.

Pricing: free and open source under the Apache 2.0 license.

Who should pick it: almost every team. If you only install one scanner, install Trivy. Run trivy image --severity HIGH,CRITICAL myapp:latest to see the worst findings first.

2. Grype + Syft — best for SBOM-first pipelines

Grype, from Anchore, is an open-source vulnerability scanner that works from a software bill of materials, usually generated by its companion tool Syft. Syft builds the SBOM once, and Grype re-scans it as new CVEs are published, without re-pulling the image.

  • Syft generates SBOMs in SPDX and CycloneDX formats
  • Grype matches packages against vulnerability databases
  • Fast CLI, easy to run in CI and in air-gapped environments

Pros: free and open source; a clean CVE signal; SBOMs double as compliance evidence.

Cons: no IaC or secret scanning, so it covers less than Trivy; you need Syft alongside it.

Pricing: free and open source.

Who should pick it: teams that already produce SBOMs for customers or regulators, and want to re-scan them cheaply over time.

3. Docker Scout — best for Docker Hub teams

Docker Scout is Docker's own image analysis service, built into the Docker CLI, Docker Desktop and Docker Hub. It flags vulnerable and outdated packages, shows which base-image update would fix the most findings, and lets you compare two image versions to prove a rebuild helped.

  • Built into the Docker CLI and Docker Desktop, so there is nothing extra to install
  • Base-image recommendations with clear remediation guidance
  • Policy evaluation and continuous analysis of enabled repositories

Pros: zero friction for Docker users; the compare feature is genuinely useful for tracking remediation.

Cons: free use is limited to one Scout-enabled repository on the Personal plan and two on Pro; full features need a Docker Hub account and network access.

Pricing: Personal plan free with one Scout-enabled repository; Pro from $9/user/month as of November 2026; Team from $15/user/month as of November 2026 with unlimited Scout-enabled repositories.

Who should pick it: teams that already build and ship with Docker Hub and want scanning where they already work.

4. Snyk Container — best for guided fixes

Snyk Container scans images for OS and application vulnerabilities and, unlike most free scanners, focuses on what to do next: which base image to upgrade, which packages to bump, and how to fix the findings in a pull request.

  • Base-image upgrade advice that shows which bump clears the most CVEs
  • IDE plugins and pull-request integration for developers
  • Monitors images over time and alerts on new vulnerabilities

Pros: the best remediation guidance on this list; good developer experience; free tier for small use.

Cons: the free tier is limited; larger teams move to credit-based Enterprise pricing.

Pricing: free tier available; paid plans use credit-based Enterprise pricing — contact Snyk for a quote.

Who should pick it: teams that want fixes, not just findings, and are willing to pay for them once they outgrow the free tier.

5. Clair — best self-hosted registry scanner

Clair, originally from CoreOS and now maintained as an open-source project, is a static analysis tool for container images that runs as a service. It ingests image layers, indexes their contents, and serves vulnerability data through an API, which makes it a good fit behind a private registry.

  • API-first design for integration with registries and CI systems
  • Supports multiple vulnerability data sources
  • Runs entirely on your own infrastructure

Pros: free and open source; well suited to self-hosted registries; no per-seat pricing.

Cons: needs setup and maintenance; no built-in user interface or fix guidance.

Pricing: free and open source.

Who should pick it: platform teams running their own registry who want scanning as a service behind it.

6. Docker Bench for Security — best for host hardening

Docker Bench for Security is a script that checks your Docker host and containers against the CIS Docker Benchmark. It does not scan images for CVEs; it checks how Docker itself is configured, from daemon flags to file permissions to containers running as root.

  • Checks daemon settings, file permissions and container runtime flags
  • Reports pass, warn and info results per check
  • Runs as a single container, with no installation

Pros: free and open source; catches configuration mistakes that image scanners cannot see.

Cons: it is not a CVE scanner, so it must be paired with one; output needs interpretation.

Pricing: free and open source.

Who should pick it: anyone running Docker on their own servers, as a complement to Trivy or Grype.

7. Hadolint — best Dockerfile linter

Hadolint parses your Dockerfile and flags risky patterns before the image is even built: unpinned base images, missing package cleanup, running as root, or using ADD where COPY would do. It catches the decisions that create vulnerabilities later.

  • Lints Dockerfiles against best-practice rules
  • Runs in CI, editors and the command line
  • Fast, with clear messages per finding

Pros: free and open source; catches problems at the earliest possible point; very fast.

Cons: it checks the Dockerfile, not the built image, so it cannot find CVEs in packages.

Pricing: free and open source.

Who should pick it: every team that writes Dockerfiles. Pair it with Trivy for full coverage.

8. Wiz — best enterprise container platform

Wiz is a cloud security platform that scans container images as part of a much wider picture: cloud configuration, workloads, identities and runtime behavior. It connects image vulnerabilities to the cloud resources that actually expose them, so you can prioritize the findings that matter.

  • Image scanning connected to cloud context and exposure
  • Runtime detection alongside build-time scanning
  • Dashboards and reporting for large organizations

Pros: the broadest context of any tool here; strong prioritization for large estates.

Cons: enterprise pricing with no published starting price; more than a small team needs.

Pricing: custom pricing; contact the vendor for a quote.

Who should pick it: larger organizations that already use a cloud security platform and want container scanning inside it.

How do you choose a Docker vulnerability scanner?

Start with where you build. If you build in Docker Hub, Scout is already there. If you build in GitHub Actions or GitLab CI, Trivy or Grype drops in with one step. The scanner that fits your pipeline is the one you will actually run.

  • Coverage: does it scan OS packages and language dependencies, or only one of them? Does it also check misconfigurations and secrets?
  • Fix guidance: does it tell you which base image to upgrade, or just list CVEs?
  • Speed: a scan that takes five minutes will be skipped; one that takes twenty seconds will run on every build.
  • Offline use: can it run with a cached database, or does it need network access to the vendor?
  • Output: does it produce SARIF or JSON your CI system can act on, or only a human-readable report?

Run two scanners on the same image once and compare. They will disagree on some findings, because they match packages against databases differently. That disagreement is normal. What matters is whether each scanner finds the critical issues and tells you how to fix them.

Also decide your failure policy before you enforce it. Failing every build on any high-severity CVE will block releases within a week, because most images contain unfixed vulnerabilities in packages you do not even use. Start by failing only on critical findings with a fix available, then tighten the policy as your images get cleaner.

What mistakes do teams make with container scanning?

Scanning is easy to start and easy to get wrong. These are the mistakes that waste the most time.

Four mistakes that waste your scanning effort 1. Scanning only in the registry, after the image is shipped 2. Building from latest tags that change under you 3. Patching packages one by one instead of upgrading the base image 4. Failing every build on any high CVE, then disabling the scan Fix the base image first, pin your tags, and fail builds only on fixable criticals.
The most common container scanning mistakes, and the fixes. Illustration by Cysoro.
  • Scanning only in the registry: by then the image is already deployed. Scan in the build, and use the registry scan as a safety net.
  • Using latest tags: an image built from node:latest today is a different image tomorrow. Pin the base image to a specific version.
  • Ignoring the base image: most CVEs in a typical image come from the base layer, not your code. One base-image upgrade often clears dozens of findings.
  • Failing on everything: a policy nobody can pass gets disabled. Start strict on critical, fixable findings and tighten gradually.

Another common mistake is scanning the image but not the host. A clean image on a misconfigured Docker daemon is still at risk, which is why Docker Bench belongs in the same pipeline as your CVE scanner. Network scanning matters too — our best ARP scanner guide covers finding the devices your containers actually run on.

Free vs paid Docker scanners: when should you pay?

Free scanners cover the core job: finding known vulnerabilities in your images. Trivy, Grype, Clair, Docker Bench and Hadolint cost nothing and are maintained by large communities. For a small team, that is usually enough.

Pay when you need one of three things. First, fix guidance that saves developer time: Snyk's base-image advice and pull-request integration are worth paying for if your team ships many services. Second, policy enforcement across many repositories, which Docker Scout provides on Team and Business plans. Third, a single platform that ties image findings to cloud exposure, which is what Wiz sells.

Do not pay for a scanner that only duplicates what Trivy already tells you for free. Before buying, run Trivy on your ten most-used images, count the critical findings with fixes available, and ask the vendor what their tool would add to that exact list. If the answer is mostly a dashboard, keep the free tool.

For teams just starting out, our small business cybersecurity checklist puts container scanning in context with the other controls that matter most.

The bottom line

Install Trivy, add it to your build pipeline, and fail the build on critical vulnerabilities that have a fix. Add Hadolint for your Dockerfiles and Docker Bench for your hosts, and you have a solid container security baseline for free.

Then upgrade to Docker Scout or Snyk when you need better fix guidance or policy control across many repositories. You can see how container scanning fits into a wider attack-surface view on Cysoro's attack surface management page.

Frequently asked questions

What is the best vulnerability scanner for Docker?

Trivy is the best choice for most teams because it is free, open source and scans container images for known vulnerabilities in OS packages and language dependencies, plus misconfigurations and secrets. Docker Scout suits Docker Hub teams, and Snyk Container suits teams that want guided remediation.

Is Trivy free?

Yes. Trivy is open source under the Apache 2.0 license and free to use, including in commercial pipelines. It is maintained by Aqua Security and can scan images, filesystems, Git repositories and Kubernetes workloads without a paid plan.

What is the difference between Trivy and Grype?

Trivy scans images, filesystems, code and infrastructure-as-code for vulnerabilities, misconfigurations, secrets and licenses in one binary. Grype focuses on vulnerability detection from a software bill of materials, usually generated by its companion tool Syft. Teams that center their workflow on SBOMs often prefer Grype; teams that want one tool for everything prefer Trivy.

Does Docker Scout scan for free?

Partly. Docker's Personal plan is free and includes Docker Scout on one repository, Pro includes two, and Team and Business include unlimited Scout-enabled repositories. Local vulnerability analysis in the Docker CLI is available without a paid plan.

How do I scan a Docker image in CI?

Add a scan step after the image build, for example running trivy image with a severity filter and failing the build on critical findings. Keep the step fast by caching the vulnerability database, and scan on every pull request so new vulnerabilities are caught before they reach production.

Do container scanners find vulnerabilities in my own code?

They find known vulnerabilities in the packages and libraries your image contains, not new bugs in code you wrote. For your own code you need a static analysis tool. Container scanners also miss misconfigurations and runtime behavior unless they also check those, which Trivy does.

Should I scan images in the registry too?

Yes, as a safety net. Images can gain new known vulnerabilities after they are built, when new CVEs are published. Registry scanning and continuous re-scanning catch those, but they do not replace scanning in the build, where you can still fix the problem before shipping.

Sources

  1. Aqua Security — Trivy Operator: Trivy Scanner documentation
  2. Docker — Docker Plans FAQs (Scout limits per plan)
  3. Docker — Docker Scout documentation
  4. Docker — Pricing
  5. Snyk — Plans and Pricing
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against Aqua's Trivy documentation, Docker's own Scout documentation and pricing pages, and Snyk's plans page.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free