CLI for querying Docker Scout GraphQL vulnerabilities for Docker images.
Project description
docker-scout-graphql
docker-scout-graphql scans Docker images by:
- Extracting package dependencies from
docker sbom --format syft-json. - Converting package URLs into the format expected by Docker Scout's GraphQL backend.
- Querying
https://api.dso.docker.com/v1/graphql. - Returning vulnerabilities separated by image layer hierarchy.
It can scan one image or all local images.
Install
pip install .
For development mode:
pip install -e .
Usage
Scan one image and print JSON (default):
docker-scout-graphql debian:12-slim
Scan one image and write JSON report:
docker-scout-graphql debian:12-slim -o report.json
Scan all local images and write JSON:
docker-scout-graphql --all-images -o report.json
Markdown output (optional):
docker-scout-graphql debian:12-slim --markdown -o report.md
Output
Default output is JSON with this top-level shape:
{
"schema_version": "1.0",
"generated_at_utc": "2026-02-27T02:17:14.428185+00:00",
"images_scanned": 1,
"images": []
}
Each images[] entry contains:
- overall counts (
queried_packages,vulnerable_packages_count,vulnerability_count) - raw vulnerable package records (
packages) - layered hierarchy (
image_hierarchy.layers) with vulnerable packages grouped by image layer
Release
For TestPyPI/PyPI publishing steps, see PYPI_RELEASE.md. You can also use the helper script:
.\scripts\publish.ps1 -TestPyPI
.\scripts\publish.ps1
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file docker_scout_graphql-0.2.0.tar.gz.
File metadata
- Download URL: docker_scout_graphql-0.2.0.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
017e6617eb5ec6c21d9192ad19993f7f907a3a38c054dd84b6bd2353d1ae5ad2
|
|
| MD5 |
647e2ec5388512ea9222d41e90475dcc
|
|
| BLAKE2b-256 |
ed891fb9317521a6296643b111ae6d1be9d771c955de2e70fe4a72e7041427bb
|
File details
Details for the file docker_scout_graphql-0.2.0-py3-none-any.whl.
File metadata
- Download URL: docker_scout_graphql-0.2.0-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3201b1ce763567cf1d0b25e5a9cc89b8e46340265338642cdf99507a4d7e221e
|
|
| MD5 |
36b3e35b94a4dbeabe2d0f42d4f3780a
|
|
| BLAKE2b-256 |
29ee4c2979822c12eeb5793e0c9469000d80ae45de5344e30bf27615695820e7
|