Back to library
Defensive Beginner Free

Write image scan results as JSON.

Write image scan results as JSON.

Trivy / Vulnerability Management

Log in to save

Command

trivy image --format json --output trivy-report.json app:latest

Syntax

trivy image --format json --output trivy-report.json app:latest

Use case

Use during authorized defensive operations, lab simulations, or audit preparation to understand expected telemetry and command structure.

Explanation

Write image scan results as JSON. This reference is stored in the database and rendered dynamically for safe education, audit, and simulation workflows.

Example output

SIMULATED OUTPUT
status=ok
records=12
note="Database seeded command reference."

More examples

Expanded library example

trivy image --format json --output trivy-report.json app:latest

Write image scan results as JSON.

linux macos windows trivy vulnerability-management expanded-library

Related

Defensive Beginner Free

Scan a container image for vulnerabilities.

Scan a container image for vulnerabilities.

trivy image nginx:1.23
trivy vulnerability-management expanded-library
Trivy / Vulnerability Management Open
Defensive Beginner Free

Scan filesystem for vulnerabilities and misconfiguration.

Scan filesystem for vulnerabilities and misconfiguration.

trivy fs --security-checks vuln,config .
trivy vulnerability-management expanded-library
Trivy / Vulnerability Management Open
Defensive Beginner Free

Scan IaC configuration.

Scan IaC configuration.

trivy config ./terraform
trivy vulnerability-management expanded-library
Trivy / Vulnerability Management Open