clairctl report <image>Submits an image’s manifest to a Clair server and prints the vulnerabilities it finds.
Example
clairctl report quay.io/org/app:latestAn open-source service for static analysis of vulnerabilities in container images, typically used with registries via clairctl.
docker pull quay.io/projectquay/clair:latestclairctl report <image>Submits an image’s manifest to a Clair server and prints the vulnerabilities it finds.
Example
clairctl report quay.io/org/app:latestclairctl report -o json <image>JSON output for scripting.
Example
clairctl report -o json quay.io/org/app:latestclairctl report -o xml <image>XML output (for example for older CI plug-ins).
Example
clairctl report -o xml app:latestclairctl --host <url> report <image>Points at a specific Clair instance.
Example
clairctl --host http://clair.internal:6060 report app:latestclairctl -D report <image>Debug logging, useful when an image fails to index.
clair -conf <config>Starts Clair. The mode setting (combo, indexer, matcher, notifier) decides which services run.
Example
clair -conf /etc/clair/config.yamldocker run -p 6060:6060 -v <dir>:/config quay.io/projectquay/clair:<version> -conf /config/config.yamlRuns Clair in a container. It needs a PostgreSQL database configured in config.yaml.
Example
docker run -p 6060:6060 -v $PWD:/config quay.io/projectquay/clair:4.8.0 -conf /config/config.yamlcurl http://<host>:6061/healthzChecks the introspection health endpoint.
Example
curl http://localhost:6061/healthzcurl http://<host>:6061/metricsPrometheus metrics, including indexing and matching latency.
Example
curl http://localhost:6061/metricsclairctl export-updaters <file>Downloads vulnerability data on a connected machine for an air-gapped install.
Example
clairctl export-updaters updates.json.gzclairctl import-updaters <file>Imports exported vulnerability data into an offline Clair database.
Example
clairctl import-updaters updates.json.gzcurl -X POST http://<host>:6060/indexer/api/v1/index_report -d @<manifest>Indexes an image manifest directly through the API.
Example
curl -X POST http://localhost:6060/indexer/api/v1/index_report -d @manifest.jsoncurl http://<host>:6060/matcher/api/v1/vulnerability_report/<digest>Fetches the vulnerability report for an indexed manifest digest.
Example
curl http://localhost:6060/matcher/api/v1/vulnerability_report/sha256:abc…