Trivy Image Scanning
Before you deploy a container image, it is worth checking whether it carries known security vulnerabilities. CasOS integrates Trivy, an open-source vulnerability scanner, so you can scan any image directly from the web UI without setting up a separate pipeline.
Prerequisites
Trivy must be installed on the machine running CasOS and available on its PATH. Without Trivy, the scan endpoint returns an error.
# Linux — install to /usr/local/bin
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin
# Verify
trivy --version
On the first scan, Trivy downloads its vulnerability database from GitHub. This can take a minute. Subsequent scans use the cached database and are much faster.
Running a scan
Open Security → Trivy Scan. Enter the image reference in the input field — for example nginx:1.27 or myrepo/myapp:v1.2.3 — and click Scan. The scan runs synchronously and results appear when it completes. Scanning a large image with a cold cache may take 30–60 seconds; a warm cache is typically under 10 seconds.