Skip to content

Commit 36db1f8

Browse files
committed
Add docs
1 parent d83b9f3 commit 36db1f8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/detectors/linux.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,20 @@ Linux detection depends on the following:
1111
Linux package detection is performed by running [Syft](https://github.com/anchore/syft) and parsing the output.
1212
The output contains the package name, version, and the layer of the container in which it was found.
1313

14+
### Scanner Scope
15+
16+
By default, this detector invokes Syft with the `all-layers` scanning scope (i.e. the Syft argument `--scope all-layers`).
17+
18+
Syft has another scope, `squashed`, which can be used to scan only files accessible from the final layer of an image.
19+
20+
The detector argument `Linux.ImageScanScope` can be used to configure this option as `squashed` or `all-layers` when invoking Component Detection.
21+
22+
For example:
23+
24+
```sh
25+
--DetectorArgs Linux.ImageScanScope=squashed
26+
```
27+
1428
## Known limitations
1529

1630
- Windows container scanning is not supported

0 commit comments

Comments
 (0)