mirror of
https://github.com/anchore/syft.git
synced 2026-02-12 02:26:42 +01:00
update documentation to reflect root vs packages subcommand
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
parent
929b78efbf
commit
68c4bf8bbe
2
Makefile
2
Makefile
@ -78,7 +78,7 @@ all: clean static-analysis test ## Run all linux-based checks (linting, license
|
||||
@printf '$(SUCCESS)All checks pass!$(RESET)\n'
|
||||
|
||||
.PHONY: test
|
||||
test: unit validate-cyclonedx-schema integration benchmark acceptance-linux cli ## Run all tests (currently unit, integration, linux acceptance, and mac cli tests)
|
||||
test: unit validate-cyclonedx-schema integration benchmark acceptance-linux cli ## Run all tests (currently unit, integration, linux acceptance, and cli tests)
|
||||
|
||||
.PHONY: help
|
||||
help:
|
||||
|
||||
@ -21,12 +21,14 @@ If you encounter an issue, please [let us know using the issue tracker](https://
|
||||
|
||||
To generate an SBOM for a Docker or OCI image:
|
||||
```
|
||||
syft packages <image>
|
||||
|
||||
# note: this is the same as not providing the "packages" subcommand
|
||||
syft <image>
|
||||
```
|
||||
|
||||
**Note**: This is equivalent to specifying the `packages` subcommand:
|
||||
```
|
||||
syft packages <image>
|
||||
```
|
||||
|
||||
The above output includes only software that is visible in the container (i.e., the squashed representation of the image).
|
||||
To include software from all image layers in the SBOM, regardless of its presence in the final image, provide `--scope all-layers`:
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user