← All insightsTroubleshooting

Troubleshooting Trivy: common problems and fixes

CodeWizard Academy · 28 March 2026 · 3 min read · Advanced

When Trivy misbehaves, the cause is usually one of a handful of familiar issues. Here is how to spot and fix them fast.

The usual suspects

  • Failing on unfixed CVEs and drowning in noise
  • Scanning only images and ignoring IaC and secrets
  • Never updating the vulnerability DB in air-gapped runners

Commands for diagnosis

bash
trivy image ghcr.io/acme/web:1.0
trivy fs --scanners vuln,secret,misconfig .
trivy k8s --report summary cluster

Prevent the repeat

  • Gate on HIGH/CRITICAL with ignore-unfixed, then tighten over time
  • Scan images, IaC and filesystems - not just one surface
  • Cache and periodically refresh the DB in CI

Want senior help putting Trivy to work - or a team bootcamp on it? CodeWizard runs Israel's largest DevOps community and embeds named senior engineers with a transparent hours log. Book a free consult or explore the Academy.

Like where this is going?

Get hands-on help from the engineers who write these posts.

Book a free consult